CVE-2024-46687
published high CVSS 3.1 · 7.8btrfs: fix a use-after-free when hitting errors inside btrfs_submit_chunk()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux852eee62d31abd695cd43e1b875d664ed292a8ca to < 51722b99f41f5e722ffa10b8f61e802a0e70b331 · 852eee62d31abd695cd43e1b875d664ed292a8ca to < 4a3b9e1a8e6cd1a8d427a905e159de58d38941cc · 852eee62d31abd695cd43e1b875d664ed292a8ca to < 10d9d8c3512f16cad47b2ff81ec6fc4b27d8ee10 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.3 (affected) · 0 to < 6.3 (unaffected · semver) · 6.6.49 through 6.6.* (unaffected · semver) · 6.10.8 through 6.10.* (unaffected · semver) · 6.11 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-64kbaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-64kb-develaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azureaarch64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azurex86_64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azure-develaarch64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azure-develx86_64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-cocox86_64 | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-coco-develx86_64 | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-coco_debugx86_64 | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-coco_debug-develx86_64 | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-baseaarch64 | Advisory build | 6.4.0-150600.23.25.1.150600.12.10.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-baseppc64le | Advisory build | 6.4.0-150600.23.25.1.150600.12.10.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-basex86_64 | Advisory build | 6.4.0-150600.23.25.1.150600.12.10.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-devels390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-extrax86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchs390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-develppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-devels390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-develx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-develnoarch | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-azurenoarch | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-coconoarch | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-rtnoarch | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-docsnoarch | Advisory build | 6.4.0-150600.23.25.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_10_14-rtx86_64 | Advisory build | 1-150600.1.3.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_23_25-defaultppc64le | Advisory build | 1-150600.13.3.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_23_25-defaults390x | Advisory build | 1-150600.13.3.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_23_25-defaultx86_64 | Advisory build | 1-150600.13.3.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-macrosnoarch | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-buildaarch64 | Advisory build | 6.4.0-150600.23.25.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-buildppc64le | Advisory build | 6.4.0-150600.23.25.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-builds390x | Advisory build | 6.4.0-150600.23.25.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-buildx86_64 | Advisory build | 6.4.0-150600.23.25.2 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rt-develx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rt_debugx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rt_debug-develx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-sourcenoarch | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-source-azurenoarch | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-source-coconoarch | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-source-rtnoarch | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symsaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symsppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symss390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symsx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-azureaarch64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-azurex86_64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-cocox86_64 | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-zfcpdumps390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-cocox86_64 | Advisory build | 6.4.0-15061.6.coco15sp6.1 | SUSE-SU-2024:3553-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-64kbaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-azureaarch64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-azurex86_64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-64kbaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-azureaarch64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-azurex86_64 | Advisory build | 6.4.0-150600.8.14.1 | SUSE-SU-2024:3551-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaults390x | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.25.1 | SUSE-SU-2024:3561-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.14.1 | SUSE-SU-2024:3564-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix a use-after-free when hitting errors inside btrfs_submit_chunk() [BUG] There is an internal report that KASAN is reporting use-after-free, with the following backtrace: BUG: KASAN: slab-use-after-free in btrfs_check_read_bio+0xa68/0xb70 [btrfs] Read of size 4 at addr ffff8881117cec28 by task kworker/u16:2/45 CPU: 1 UID: 0 PID: 45 Comm: kworker/u16:2 Not tainted 6.11.0-rc2-next-20240805-default+ #76 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014 Workqueue: btrfs-endio btrfs_end_bio_work [btrfs] Call Trace: dump_stack_lvl+0x61/0x80 print_address_description.constprop.0+0x5e/0x2f0 print_report+0x118/0x216 kasan_report+0x11d/0x1f0 btrfs_check_read_bio+0xa68/0xb70 [btrfs] process_one_work+0xce0/0x12a0 worker_thread+0x717/0x1250 kthread+0x2e3/0x3c0 ret_from_fork+0x2d/0x70 ret_from_fork_asm+0x11/0x20 Allocated by task 20917: kasan_save_stack+0x37/0x60 kasan_save_track+0x10/0x30 __kasan_slab_alloc+0x7d/0x80 kmem_cache_alloc_noprof+0x16e/0x3e0 mempool_alloc_noprof+0x12e/0x310 bio_alloc_bioset+0x3f0/0x7a0 btrfs_bio_alloc+0x2e/0x50 [btrfs] submit_extent_page+0x4d1/0xdb0 [btrfs] btrfs_do_readpage+0x8b4/0x12a0 [btrfs] btrfs_readahead+0x29a/0x430 [btrfs] read_pages+0x1a7/0xc60 page_cache_ra_unbounded+0x2ad/0x560 filemap_get_pages+0x629/0xa20 filemap_read+0x335/0xbf0 vfs_read+0x790/0xcb0 ksys_read+0xfd/0x1d0 do_syscall_64+0x6d/0x140 entry_SYSCALL_64_after_hwframe+0x4b/0x53 Freed by task 20917: kasan_save_stack+0x37/0x60 kasan_save_track+0x10/0x30 kasan_save_free_info+0x37/0x50 __kasan_slab_free+0x4b/0x60 kmem_cache_free+0x214/0x5d0 bio_free+0xed/0x180 end_bbio_data_read+0x1cc/0x580 [btrfs] btrfs_submit_chunk+0x98d/0x1880 [btrfs] btrfs_submit_bio+0x33/0x70 [btrfs] submit_one_bio+0xd4/0x130 [btrfs] submit_extent_page+0x3ea/0xdb0 [btrfs] btrfs_do_readpage+0x8b4/0x12a0 [btrfs] btrfs_readahead+0x29a/0x430 [btrfs] read_pages+0x1a7/0xc60 page_cache_ra_unbounded+0x2ad/0x560 filemap_get_pages+0x629/0xa20 filemap_read+0x335/0xbf0 vfs_read+0x790/0xcb0 ksys_read+0xfd/0x1d0 do_syscall_64+0x6d/0x140 entry_SYSCALL_64_after_hwframe+0x4b/0x53 [CAUSE] Although I cannot reproduce the error, the report itself is good enough to pin down the cause. The call trace is the regular endio workqueue context, but the free-by-task trace is showing that during btrfs_submit_chunk() we already hit a critical error, and is calling btrfs_bio_end_io() to error out. And the original endio function called bio_put() to free the whole bio. This means a double freeing thus causing use-after-free, e.g.: 1. Enter btrfs_submit_bio() with a read bio The read bio length is 128K, crossing two 64K stripes. 2. The first run of btrfs_submit_chunk() 2.1 Call btrfs_map_block(), which returns 64K 2.2 Call btrfs_split_bio() Now there are two bios, one referring to the first 64K, the other referring to the second 64K. 2.3 The first half is submitted. 3. The second run of btrfs_submit_chunk() 3.1 Call btrfs_map_block(), which by somehow failed Now we call btrfs_bio_end_io() to handle the error 3.2 btrfs_bio_end_io() calls the original endio function Which is end_bbio_data_read(), and it calls bio_put() for the original bio. Now the original bio is freed. 4. The submitted first 64K bio finished Now we call into btrfs_check_read_bio() and tries to advance the bio iter. But since the original bio (thus its iter) is already freed, we trigger the above use-after free. And even if the memory is not poisoned/corrupted, we will later call the original endio function, causing a double freeing. [FIX] Instead of calling btrfs_bio_end_io(), call btrfs_orig_bbio_end_io(), which has the extra check on split bios and do the pr ---truncated---
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is entered from ordinary local file I/O on a mounted btrfs filesystem (`read()`/readahead via `btrfs_readahead` → `submit_extent_page` → `btrfs_submit_bio`, or writeback). No remote protocol data is processed by the affected code, so local system access is required. AC:L - The attacker controls both preconditions — the bio split is forced simply by issuing reads that cross a stripe/chunk boundary (the common case for readahead), and the error leg is reachable via `GFP_NOFS` allocation failures induced by memory pressure or via a corrupted chunk/csum tree, with unlimited retries and no race the attacker cannot drive. PR:L - Only an unprivileged local account with read (or write) access to any file on a btrfs filesystem is needed; no capabilities, no CAP_SYS_ADMIN, and no namespace tricks are required. UI:N - The bug triggers from the attacker's own `read()`/readahead or writeback activity on an already-mounted filesystem; no action by any other user is needed. S:U - The use-after-free and double-free are confined to kernel memory managed by the same security authority; there is no crossing of a VM, IOMMU, or sandbox boundary. C:H - The completion handler reads a freed `btrfs_bio` (`bi_pool`, `private`, `pending_ios`, `saved_iter`, `csum`) and then calls `bbio->end_io(bbio)` through a function pointer taken from freed slab memory, which after heap reshaping gives an attacker read access to arbitrary kernel memory. I:H - The path writes into the freed object (`bi_status` store, `bio_advance_iter_single`, `atomic_dec_and_test` on `pending_ios`), performs an indirect call through a freed function pointer, and double-frees the bio plus `kfree()`s a stale `csum` pointer — a combination that is leverageable into arbitrary write and control-flow hijack. A:H - Even without exploitation the use-after-free and subsequent double free of the bio corrupt the slab/mempool and reliably produce an oops or kernel panic, as observed in the reported KASAN splat.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 852eee62d31abd695cd43e1b875d664ed292a8ca to < 51722b99f41f5e722ffa10b8f61e802a0e70b331 (affected · git)852eee62d31abd695cd43e1b875d664ed292a8ca to < 4a3b9e1a8e6cd1a8d427a905e159de58d38941cc (affected · git)852eee62d31abd695cd43e1b875d664ed292a8ca to < 10d9d8c3512f16cad47b2ff81ec6fc4b27d8ee10 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.3 (affected)0 to < 6.3 (unaffected · semver)6.6.49 through 6.6.* (unaffected · semver)6.10.8 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
2Linux · cna
btrfs: fix a use-after-free when hitting errors inside btrfs_submit_chunk()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3235ea7a8d86098b043b9d968f0bbfd7feb06f04dd5cc999f5d096888f666a8a
- Ingested
- 23 Sep 2026, 08:28:03 UTC
- Source record
- Official CVE record