CVE-2024-37354
published high CVSS 3.1 · 7.8btrfs: fix crash on racing fsync and size-extending write into prealloc
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux31d11b83b96faaee4bb514d375a09489117c3e8d to < c993fd02ba471e296ca1996f13626fc917120158 · 31d11b83b96faaee4bb514d375a09489117c3e8d to < 1ff2bd566fbcefcb892be85c493bdb92b911c428 · 31d11b83b96faaee4bb514d375a09489117c3e8d to < 3d08c52ba1887a1ff9c179d4b6a18b427bcb2097 · 31d11b83b96faaee4bb514d375a09489117c3e8d to < f4e5ed974876c14d3623e04dc43d3e3281bc6011 · 31d11b83b96faaee4bb514d375a09489117c3e8d to < 9d274c19a71b3a276949933859610721a453946b · 61a9f6b7fe0ca9706b49a23cecf5f9a9c802b6ce · 4.14.57 to < 4.15 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.17 (affected) · 0 to < 4.17 (unaffected · semver) · 5.15.197 through 5.15.* (unaffected · semver) · 6.1.94 through 6.1.* (unaffected · semver) · 6.6.34 through 6.6.* (unaffected · semver) · 6.9.5 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-683 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-317.197.5.1.el8uek | ELSA-2026-50113 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek64kaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek64k-coreaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek64k-develaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek64k-modulesaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| Oracle Linux | 9 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:5.15.0-317.197.5.1.el9uek | ELSA-2026-50113 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-rtx86_64 | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-rtx86_64 | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-rtx86_64 | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azurex86_64 | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-basex86_64 | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-develx86_64 | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-extrax86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-azurenoarch | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-rtnoarch | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-docsnoarch | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-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 crash on racing fsync and size-extending write into prealloc We have been seeing crashes on duplicate keys in btrfs_set_item_key_safe(): BTRFS critical (device vdb): slot 4 key (450 108 8192) new key (450 108 8192) ------------[ cut here ]------------ kernel BUG at fs/btrfs/ctree.c:2620! invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 3139 Comm: xfs_io Kdump: loaded Not tainted 6.9.0 #6 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-2.fc40 04/01/2014 RIP: 0010:btrfs_set_item_key_safe+0x11f/0x290 [btrfs] With the following stack trace: #0 btrfs_set_item_key_safe (fs/btrfs/ctree.c:2620:4) #1 btrfs_drop_extents (fs/btrfs/file.c:411:4) #2 log_one_extent (fs/btrfs/tree-log.c:4732:9) #3 btrfs_log_changed_extents (fs/btrfs/tree-log.c:4955:9) #4 btrfs_log_inode (fs/btrfs/tree-log.c:6626:9) #5 btrfs_log_inode_parent (fs/btrfs/tree-log.c:7070:8) #6 btrfs_log_dentry_safe (fs/btrfs/tree-log.c:7171:8) #7 btrfs_sync_file (fs/btrfs/file.c:1933:8) #8 vfs_fsync_range (fs/sync.c:188:9) #9 vfs_fsync (fs/sync.c:202:9) #10 do_fsync (fs/sync.c:212:9) #11 __do_sys_fdatasync (fs/sync.c:225:9) #12 __se_sys_fdatasync (fs/sync.c:223:1) #13 __x64_sys_fdatasync (fs/sync.c:223:1) #14 do_syscall_x64 (arch/x86/entry/common.c:52:14) #15 do_syscall_64 (arch/x86/entry/common.c:83:7) #16 entry_SYSCALL_64+0xaf/0x14c (arch/x86/entry/entry_64.S:121) So we're logging a changed extent from fsync, which is splitting an extent in the log tree. But this split part already exists in the tree, triggering the BUG(). This is the state of the log tree at the time of the crash, dumped with drgn (https://github.com/osandov/drgn/blob/main/contrib/btrfs_tree.py) to get more details than btrfs_print_leaf() gives us: >>> print_extent_buffer(prog.crashed_thread().stack_trace()[0]["eb"]) leaf 33439744 level 0 items 72 generation 9 owner 18446744073709551610 leaf 33439744 flags 0x100000000000000 fs uuid e5bd3946-400c-4223-8923-190ef1f18677 chunk uuid d58cb17e-6d02-494a-829a-18b7d8a399da item 0 key (450 INODE_ITEM 0) itemoff 16123 itemsize 160 generation 7 transid 9 size 8192 nbytes 8473563889606862198 block group 0 mode 100600 links 1 uid 0 gid 0 rdev 0 sequence 204 flags 0x10(PREALLOC) atime 1716417703.220000000 (2024-05-22 15:41:43) ctime 1716417704.983333333 (2024-05-22 15:41:44) mtime 1716417704.983333333 (2024-05-22 15:41:44) otime 17592186044416.000000000 (559444-03-08 01:40:16) item 1 key (450 INODE_REF 256) itemoff 16110 itemsize 13 index 195 namelen 3 name: 193 item 2 key (450 XATTR_ITEM 1640047104) itemoff 16073 itemsize 37 location key (0 UNKNOWN.0 0) type XATTR transid 7 data_len 1 name_len 6 name: user.a data a item 3 key (450 EXTENT_DATA 0) itemoff 16020 itemsize 53 generation 9 type 1 (regular) extent data disk byte 303144960 nr 12288 extent data offset 0 nr 4096 ram 12288 extent compression 0 (none) item 4 key (450 EXTENT_DATA 4096) itemoff 15967 itemsize 53 generation 9 type 2 (prealloc) prealloc data disk byte 303144960 nr 12288 prealloc data offset 4096 nr 8192 item 5 key (450 EXTENT_DATA 8192) itemoff 15914 itemsize 53 generation 9 type 2 (prealloc) prealloc data disk byte 303144960 nr 12288 prealloc data offset 8192 nr 4096 ... So the real problem happened earlier: notice that items 4 (4k-12k) and 5 (8k-12k) overlap. Both are prealloc extents. Item 4 straddles i_size and item 5 starts at i_size. Here is the state of ---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 bug is reached purely through local syscalls (fallocate, fsetxattr, O_DIRECT pwrite, fdatasync) on a btrfs file, requiring a local account with write access to a btrfs filesystem. There is no network-facing consumer of this path in the default configuration. AC:L - The attacker drives both sides of the race — they issue the direct-I/O write that creates the in-flight ordered extent and the fsync that enters the unlocked btrfs_next_leaf() window — and can loop it while arranging the B-tree leaf layout via extents/xattrs. The commit author states these crashes were observed occurring spontaneously in production workloads, so deliberate triggering is reliable. PR:L - Only an ordinary unprivileged local user is needed; every operation on the path (fallocate, user.* xattr set, direct write, fdatasync) is permitted on a file the user owns, with no capability check anywhere in the call chain. Writable btrfs is the default root/home filesystem on Fedora and openSUSE and is common on containers and embedded/NAS devices. UI:N - The attacker performs the entire sequence itself against its own file; no victim action, mount, or administrator step is required. The crash occurs synchronously in the attacker's own fdatasync() call. S:U - The corruption and crash are confined to the kernel and the filesystem the attacker already has access to, with no crossing into another security authority such as a hypervisor or IOMMU domain. This is a standard in-kernel filesystem defect. C:H - The overlapping file extent items committed to the on-disk log tree yield wrong extent mappings and inconsistent extent back-references after log replay, a corruption class that can expose stale on-disk contents from previously freed blocks (notably for nodatasum/nodatacow prealloc files, the exact workload this code handles) and lead to blocks being reused while still referenced. Under the rule of choosing the higher value when uncertain, persistent filesystem metadata corruption is scored as High. I:H - The race silently commits overlapping prealloc extent items into the log tree, so after a crash the replay reinstates prealloc over ranges that were successfully written and fsync-acknowledged, loses part of prealloc extents, and leaves implicit holes — persistent, silent corruption and loss of user file data. The resulting extent-reference inconsistency can corrupt the subvolume tree beyond the attacking user's own files. A:H - The primary observed impact is a kernel BUG() (invalid opcode oops/panic) in btrfs_set_item_key_safe(), reproducibly triggered from an unprivileged fdatasync(). It fires with a btrfs leaf write-locked and a transaction handle held, so every other task touching that filesystem blocks indefinitely, and on systems with panic_on_oops the machine goes down entirely.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 31d11b83b96faaee4bb514d375a09489117c3e8d to < c993fd02ba471e296ca1996f13626fc917120158 (affected · git)31d11b83b96faaee4bb514d375a09489117c3e8d to < 1ff2bd566fbcefcb892be85c493bdb92b911c428 (affected · git)31d11b83b96faaee4bb514d375a09489117c3e8d to < 3d08c52ba1887a1ff9c179d4b6a18b427bcb2097 (affected · git)31d11b83b96faaee4bb514d375a09489117c3e8d to < f4e5ed974876c14d3623e04dc43d3e3281bc6011 (affected · git)31d11b83b96faaee4bb514d375a09489117c3e8d to < 9d274c19a71b3a276949933859610721a453946b (affected · git)61a9f6b7fe0ca9706b49a23cecf5f9a9c802b6ce (affected · git)4.14.57 to < 4.15 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 4.17 (affected)0 to < 4.17 (unaffected · semver)5.15.197 through 5.15.* (unaffected · semver)6.1.94 through 6.1.* (unaffected · semver)6.6.34 through 6.6.* (unaffected · semver)6.9.5 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/1ff2bd566fbcefcb892be85c493bdb92b911c428
- https://git.kernel.org/stable/c/3d08c52ba1887a1ff9c179d4b6a18b427bcb2097
- https://git.kernel.org/stable/c/9d274c19a71b3a276949933859610721a453946b
- https://git.kernel.org/stable/c/c993fd02ba471e296ca1996f13626fc917120158
- https://git.kernel.org/stable/c/f4e5ed974876c14d3623e04dc43d3e3281bc6011
Provider assertions
3Linux · cna
btrfs: fix crash on racing fsync and size-extending write into prealloc
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8fca641e7114a68f2ffc395ac848f4aa4d3d9d44753fee98a74d2a37350ea0aa
- Ingested
- 23 Sep 2026, 08:24:34 UTC
- Source record
- Official CVE record