In the Linux kernel, the following vulnerability has been resolved:
btrfs: reject free space cache with more entries than pages
When loading a v1 free space cache, __load_free_space_cache() takes num_entries and num_bitmaps straight from the on-disk btrfs_free_space_header. That header is stored in the tree_root under a key with type 0, which the tree-checker has no case for, so neither count is validated before the load trusts it.
The load loops num_entries times and maps the next page whenever the current one runs out, going through io_ctl_check_crc() -> io_ctl_map_page(), which does io_ctl->pages[io_ctl->index++]. But pages[] is allocated in io_ctl_init() from the cache inode's i_size, not from num_entries:
num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); io_ctl->pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS);
So if num_entries claims more records than the pages can hold, io_ctl->index runs off the end of pages[]. The write side never hits this because io_ctl_add_entry() and io_ctl_add_bitmap() both stop once io_ctl->index >= io_ctl->num_pages; the read side just never had the same check.
To trigger it, take a clean cache (num_entries = <N> here), set num_entries in the header to 0x10000, and fix up the leaf checksum so it still passes the tree-checker. The cache inode has i_size = 65536, so num_pages is 16 and pages[] is a 16-pointer (kmalloc-128) array. The load now tries to read 65536 entries, io_ctl->index walks up to 16, and pages[16] is read past the array:
BUG: KASAN: slab-out-of-bounds in io_ctl_check_crc (fs/btrfs/free-space-cache.c:420 fs/btrfs/free-space-cache.c:565) Read of size 8 at addr ffff88800c833a80 by task kworker/u8:3/58 io_ctl_check_crc (fs/btrfs/free-space-cache.c:420 fs/btrfs/free-space-cache.c:565) __load_free_space_cache (fs/btrfs/free-space-cache.c:655 fs/btrfs/free-space-cache.c:820) load_free_space_cache (fs/btrfs/free-space-cache.c:1017) caching_thread (fs/btrfs/block-group.c:880) btrfs_work_helper (fs/btrfs/async-thread.c:312) process_one_work worker_thread kthread ret_from_fork
free-space-cache.c:420 is io_ctl_map_page(), inlined into io_ctl_check_crc() at line 565, which is why that is the frame KASAN names. The out-of-bounds slot is then treated as a struct page and handed to crc32c(), so the bad read turns into a GP fault.
Add the missing check to io_ctl_check_crc(), which is where both the entry loop and the bitmap loop end up. When num_entries is too large the load now fails like any corrupt cache: __load_free_space_cache() drops it and rebuilds the free space from the extent tree, so a valid cache is never rejected.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade python3-perf6.18Upgrade kernel6.18Upgrade perf6.12Upgrade kernel6.12-develUpgrade kernel6.12-headersUpgrade python3-perf6.12Upgrade kernel6.18-debuginfo-common-aarch64Upgrade bpftool6.18Upgrade kernel-livepatch-6.12.103-127.188Upgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel6.12-tools-develUpgrade python3-perf6.18-debuginfoUpgrade kernel6.12Upgrade kernel-livepatch-6.18.44-99.149Upgrade kernel6.18-modules-extra-commonUpgrade kernel6.18-tools-debuginfoUpgrade perf6.18Upgrade perf6.18-debuginfoUpgrade kernel6.12-debuginfoUpgrade kernel6.18-headersUpgrade kernel6.12-modules-extra-commonUpgrade kernel6.18-tools-develUpgrade kernel6.12-toolsUpgrade kernel6.12-tools-debuginfoUpgrade kernel6.12-debuginfo-common-aarch64Upgrade bpftool6.12-debuginfoUpgrade kernel6.18-debuginfoUpgrade bpftool6.12Upgrade microvm-kernel6.18Upgrade kernel6.18-toolsUpgrade perf6.12-debuginfoUpgrade kernel6.18-modules-extraUpgrade kernel6.18-develUpgrade bpftool6.18-debuginfoUpgrade python3-perf6.12-debuginfoUpgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.12-modules-extra | Sep 1, 2026 | Aug 5, 2026 |
| Debian | — | Upgrade linuxUpgrade linux-6.12 | Aug 9, 2026 | Aug 9, 2026 |
| Redhat_linux | — | No solution exists | Aug 10, 2026 | Aug 5, 2026 |
| Ubuntu | — | Upgrade linux-image-gkeUpgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-intelUpgrade linux-image-virtual-5.15Upgrade linux-image-generic-7.0Upgrade linux-image-azure-fde-lts-26.04Upgrade linux-image-gke-64k-7.0Upgrade linux-image-intel-iotgUpgrade linux-image-nvidia-tegra-rt-6.8Upgrade linux-image-kvmUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-realtime-hwe-26.04Upgrade linux-image-oem-26.04Upgrade linux-image-azureUpgrade linux-image-gcpUpgrade linux-image-5.15.0-198-generic-lpaeUpgrade linux-image-generic-64k-7.0Upgrade linux-image-azure-5.15Upgrade linux-image-oem-20.04dUpgrade linux-image-7.0.0-1014-aws-64kUpgrade linux-image-aws-64k-lts-22.04Upgrade linux-image-6.8.0-1036-nvidia-tegraUpgrade linux-image-oem-26.04aUpgrade linux-image-5.15.0-195-lowlatency-64kUpgrade linux-image-7.0.0-1008-gke-64kUpgrade linux-image-7.0.0-1014-gcpUpgrade linux-image-realtime-5.15Upgrade linux-image-7.0.0-1015-oemUpgrade linux-image-7.0.0-38-genericUpgrade linux-image-realtime-64kUpgrade linux-image-5.15.0-1117-aws-fipsUpgrade linux-image-azure-cvmUpgrade linux-image-intel-iot-realtimeUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-5.15.0-1123-azureUpgrade linux-image-intel-iot-realtime-5.15Upgrade linux-image-aws-64kUpgrade linux-image-5.15.0-1118-gcpUpgrade linux-image-lowlatency-hwe-20.04Upgrade linux-image-azure-fipsUpgrade linux-image-generic-lpae-hwe-20.04Upgrade linux-image-oem-20.04cUpgrade linux-image-aws-lts-22.04Upgrade linux-image-generic-hwe-20.04Upgrade linux-image-oracle-5.15Upgrade linux-image-5.15.0-198-fipsUpgrade linux-image-virtual-hwe-20.04Upgrade linux-image-7.0.0-38-generic-64kUpgrade linux-image-oem-7.0Upgrade linux-image-7.0.0-1008-gkeUpgrade linux-image-kvm-5.15Upgrade linux-image-realtimeUpgrade linux-image-generic-64kUpgrade linux-image-gcp-64kUpgrade linux-image-azure-fde-lts-22.04Upgrade linux-image-azure-7.0Upgrade linux-image-gkeop-5.15Upgrade linux-image-oracle-64kUpgrade linux-image-5.15.0-1118-gcp-fipsUpgrade linux-image-virtualUpgrade linux-image-6.8.0-1036-nvidia-tegra-rtUpgrade linux-image-generic-hwe-26.04Upgrade linux-image-5.15.0-1122-azure-fdeUpgrade linux-image-fips-5.15Upgrade linux-image-awsUpgrade linux-image-7.0.0-1014-awsUpgrade linux-image-7.0.0-1017-azureUpgrade linux-image-generic-lpae-5.15Upgrade linux-image-gcp-5.15Upgrade linux-image-aws-64k-5.15Upgrade linux-image-5.15.0-1123-azure-fipsUpgrade linux-image-oracle-7.0Upgrade linux-image-7.0.0-1015-ibmUpgrade linux-image-azure-fde-7.0Upgrade linux-image-oem-20.04Upgrade linux-image-azure-fde-5.15Upgrade linux-image-azure-fips-5.15Upgrade linux-image-ibmUpgrade linux-image-gkeopUpgrade linux-image-ibm-7.0Upgrade linux-image-xilinx-zynqmp-5.15Upgrade linux-image-lowlatencyUpgrade linux-image-gke-5.15Upgrade linux-image-generic-lpaeUpgrade linux-image-5.15.0-198-genericUpgrade linux-image-5.15.0-1117-aws-64kUpgrade linux-image-5.15.0-1117-awsUpgrade linux-image-5.15.0-1113-gkeUpgrade linux-image-5.15.0-1080-xilinx-zynqmpUpgrade linux-image-aws-fipsUpgrade linux-image-gke-hwe-26.04Upgrade linux-image-7.0.0-1013-oracle-64kUpgrade linux-image-oracle-lts-22.04Upgrade linux-image-lowlatency-5.15Upgrade linux-image-generic-64k-5.15Upgrade linux-image-gcp-lts-22.04Upgrade linux-image-gcp-fips-5.15Upgrade linux-image-gcp-fipsUpgrade linux-image-fipsUpgrade linux-image-gke-7.0Upgrade linux-image-aws-64k-7.0Upgrade linux-image-7.0.0-38-realtime-64kUpgrade linux-image-7.0.0-38-realtimeUpgrade linux-image-azure-lts-22.04Upgrade linux-image-aws-5.15Upgrade linux-image-5.15.0-1109-kvmUpgrade linux-image-5.15.0-1109-intel-iot-realtimeUpgrade linux-image-5.15.0-1100-gkeopUpgrade linux-image-nvidia-tegraUpgrade linux-image-5.15.0-1116-realtimeUpgrade linux-image-generic-5.15Upgrade linux-image-genericUpgrade linux-image-realtime-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-azure-fdeUpgrade linux-image-5.15.0-1114-oracleUpgrade linux-image-oracleUpgrade linux-image-5.15.0-198-generic-64kUpgrade linux-image-lowlatency-64k-5.15Upgrade linux-image-lowlatency-64kUpgrade linux-image-gke-64kUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-ibm-5.15Upgrade linux-image-realtime-64k-7.0Upgrade linux-image-nvidia-tegra-rtUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-azure-lts-26.04Upgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1016-azure-fdeUpgrade linux-image-xilinx-zynqmpUpgrade linux-image-lowlatency-64k-hwe-20.04Upgrade linux-image-7.0.0-1013-oracleUpgrade linux-image-oem-20.04bUpgrade linux-image-7.0.0-1014-gcp-64kUpgrade linux-image-aws-fips-5.15Upgrade linux-image-generic-64k-hwe-20.04Upgrade linux-image-nvidia-tegra-6.8Upgrade linux-image-5.15.0-195-lowlatencyUpgrade linux-image-intel-iotg-5.15Upgrade linux-image-5.15.0-1112-intel-iotgUpgrade linux-image-5.15.0-1111-ibmUpgrade linux-image-virtual-7.0 | Oct 6, 2026 | Oct 6, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 14, 2026 | Aug 5, 2026 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub