CVE-2024-35949
published high CVSS 3.1 · 7.8btrfs: make sure that WRITTEN is set on all metadata blocks
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux85d8a826c7cde17f9cca9c4debecb4538bdb6573 to < 9dff3e36ea89e8003516841c27c45af562b6ef44 · 85d8a826c7cde17f9cca9c4debecb4538bdb6573 to < ef3ba8ce8cf7075b716aa4afcefc3034215878ee · 85d8a826c7cde17f9cca9c4debecb4538bdb6573 to < e03418abde871314e1a3a550f4c8afb7b89cb273 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.6.85 through 6.6.* (unaffected · semver) · 6.8.10 through 6.8.* (unaffected · semver) · 6.9 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 | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-rtx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-rtx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-rtx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azurex86_64 | Advisory build | 4.12.14-16.194.1 | SUSE-SU-2024:2901-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-basex86_64 | Advisory build | 4.12.14-16.194.1 | SUSE-SU-2024:2901-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-develx86_64 | Advisory build | 4.12.14-16.194.1 | SUSE-SU-2024:2901-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-extrax86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-azurenoarch | Advisory build | 4.12.14-16.194.1 | SUSE-SU-2024:2901-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-rtnoarch | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-docsnoarch | Advisory build | 4.12.14-122.225.2 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildaarch64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-builds390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rtx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt-basex86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt-develx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt_debugx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt_debug-develx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-source-azurenoarch | Advisory build | 4.12.14-16.194.1 | SUSE-SU-2024:2901-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-source-rtnoarch | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-syms-azurex86_64 | Advisory build | 4.12.14-16.194.1 | SUSE-SU-2024:2901-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-syms-rtx86_64 | Advisory build | 4.12.14-10.197.1 | SUSE-SU-2024:2892-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_183-defaultppc64le | Advisory build | 15-2.1 | SUSE-SU-2024:4261-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_183-defaults390x | Advisory build | 15-2.1 | SUSE-SU-2024:4261-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_183-defaultx86_64 | Advisory build | 15-2.1 | SUSE-SU-2024:4261-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_186-defaultppc64le | Advisory build | 14-2.1 | SUSE-SU-2024:4239-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_186-defaults390x | Advisory build | 14-2.1 | SUSE-SU-2024:4239-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_186-defaultx86_64 | Advisory build | 14-2.1 | SUSE-SU-2024:4239-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_189-defaultppc64le | Advisory build | 13-2.1 | SUSE-SU-2024:4170-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_189-defaults390x | Advisory build | 13-2.1 | SUSE-SU-2024:4170-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_189-defaultx86_64 | Advisory build | 13-2.1 | SUSE-SU-2024:4170-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_194-defaultppc64le | Advisory build | 11-2.1 | SUSE-SU-2024:4195-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_194-defaults390x | Advisory build | 11-2.1 | SUSE-SU-2024:4195-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_194-defaultx86_64 | Advisory build | 11-2.1 | SUSE-SU-2024:4195-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_201-defaultppc64le | Advisory build | 10-8.10.1 | SUSE-SU-2024:4226-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_201-defaultppc64le | Advisory build | 11-8.10.1 | SUSE-SU-2025:0103-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_201-defaults390x | Advisory build | 10-8.10.1 | SUSE-SU-2024:4226-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_201-defaults390x | Advisory build | 11-8.10.1 | SUSE-SU-2025:0103-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_201-defaultx86_64 | Advisory build | 10-8.10.1 | SUSE-SU-2024:4226-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_201-defaultx86_64 | Advisory build | 11-8.10.1 | SUSE-SU-2025:0103-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_216-defaultppc64le | Advisory build | 8-8.6.1 | SUSE-SU-2024:4249-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_216-defaultppc64le | Advisory build | 9-8.6.1 | SUSE-SU-2025:0091-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_216-defaults390x | Advisory build | 8-8.6.1 | SUSE-SU-2024:4249-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_216-defaults390x | Advisory build | 9-8.6.1 | SUSE-SU-2025:0091-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_216-defaultx86_64 | Advisory build | 8-8.6.1 | SUSE-SU-2024:4249-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_216-defaultx86_64 | Advisory build | 9-8.6.1 | SUSE-SU-2025:0091-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultppc64le | Advisory build | 5-8.6.1 | SUSE-SU-2024:4197-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultppc64le | Advisory build | 6-8.6.1 | SUSE-SU-2025:0097-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaults390x | Advisory build | 5-8.6.1 | SUSE-SU-2024:4197-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaults390x | Advisory build | 6-8.6.1 | SUSE-SU-2025:0097-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultx86_64 | Advisory build | 5-8.6.1 | SUSE-SU-2024:4197-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultx86_64 | Advisory build | 6-8.6.1 | SUSE-SU-2025:0097-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_222-defaultppc64le | Advisory build | 3-8.6.1 | SUSE-SU-2024:4219-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_222-defaultppc64le | Advisory build | 4-8.6.1 | SUSE-SU-2025:0089-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_222-defaults390x | Advisory build | 3-8.6.1 | SUSE-SU-2024:4219-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_222-defaults390x | Advisory build | 4-8.6.1 | SUSE-SU-2025:0089-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_222-defaultx86_64 | Advisory build | 3-8.6.1 | SUSE-SU-2024:4219-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_222-defaultx86_64 | Advisory build | 4-8.6.1 | SUSE-SU-2025:0089-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_225-defaultppc64le | Advisory build | 1-8.3.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_225-defaults390x | Advisory build | 1-8.3.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_225-defaultx86_64 | Advisory build | 1-8.3.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.225.1 | SUSE-SU-2024:2940-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: make sure that WRITTEN is set on all metadata blocks We previously would call btrfs_check_leaf() if we had the check integrity code enabled, which meant that we could only run the extended leaf checks if we had WRITTEN set on the header flags. This leaves a gap in our checking, because we could end up with corruption on disk where WRITTEN isn't set on the leaf, and then the extended leaf checks don't get run which we rely on to validate all of the item pointers to make sure we don't access memory outside of the extent buffer. However, since 732fab95abe2 ("btrfs: check-integrity: remove CONFIG_BTRFS_FS_CHECK_INTEGRITY option") we no longer call btrfs_check_leaf() from btrfs_mark_buffer_dirty(), which means we only ever call it on blocks that are being written out, and thus have WRITTEN set, or that are being read in, which should have WRITTEN set. Add checks to make sure we have WRITTEN set appropriately, and then make sure __btrfs_check_leaf() always does the item checking. This will protect us from file systems that have been corrupted and no longer have WRITTEN set on some of the blocks. This was hit on a crafted image tweaking the WRITTEN bit and reported by KASAN as out-of-bound access in the eb accessors. The example is a dir item at the end of an eb. [2.042] BTRFS warning (device loop1): bad eb member start: ptr 0x3fff start 30572544 member offset 16410 size 2 [2.040] general protection fault, probably for non-canonical address 0xe0009d1000000003: 0000 [#1] PREEMPT SMP KASAN NOPTI [2.537] KASAN: maybe wild-memory-access in range [0x0005088000000018-0x000508800000001f] [2.729] CPU: 0 PID: 2587 Comm: mount Not tainted 6.8.2 #1 [2.729] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 [2.621] RIP: 0010:btrfs_get_16+0x34b/0x6d0 [2.621] RSP: 0018:ffff88810871fab8 EFLAGS: 00000206 [2.621] RAX: 0000a11000000003 RBX: ffff888104ff8720 RCX: ffff88811b2288c0 [2.621] RDX: dffffc0000000000 RSI: ffffffff81dd8aca RDI: ffff88810871f748 [2.621] RBP: 000000000000401a R08: 0000000000000001 R09: ffffed10210e3ee9 [2.621] R10: ffff88810871f74f R11: 205d323430333737 R12: 000000000000001a [2.621] R13: 000508800000001a R14: 1ffff110210e3f5d R15: ffffffff850011e8 [2.621] FS: 00007f56ea275840(0000) GS:ffff88811b200000(0000) knlGS:0000000000000000 [2.621] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [2.621] CR2: 00007febd13b75c0 CR3: 000000010bb50000 CR4: 00000000000006f0 [2.621] Call Trace: [2.621] <TASK> [2.621] ? show_regs+0x74/0x80 [2.621] ? die_addr+0x46/0xc0 [2.621] ? exc_general_protection+0x161/0x2a0 [2.621] ? asm_exc_general_protection+0x26/0x30 [2.621] ? btrfs_get_16+0x33a/0x6d0 [2.621] ? btrfs_get_16+0x34b/0x6d0 [2.621] ? btrfs_get_16+0x33a/0x6d0 [2.621] ? __pfx_btrfs_get_16+0x10/0x10 [2.621] ? __pfx_mutex_unlock+0x10/0x10 [2.621] btrfs_match_dir_item_name+0x101/0x1a0 [2.621] btrfs_lookup_dir_item+0x1f3/0x280 [2.621] ? __pfx_btrfs_lookup_dir_item+0x10/0x10 [2.621] btrfs_get_tree+0xd25/0x1910 [ copy more details from report ]
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 attack requires supplying a crafted btrfs image and having it mounted (or read) on the target — a local vector via loop device, udisks2/automount of removable media, or a user-mountable fstab entry. No network or remote peer parses this data. AC:L - Clearing the WRITTEN header bit and recomputing the block checksum is fully deterministic; the malformed dir item is dereferenced out of bounds on the very first lookup during mount, with no race or uncontrolled memory-layout precondition. PR:L - A local unprivileged account is sufficient on common deployments where udisks2/automount lets an active session mount an attacker-provided image or USB device; no root in the initial namespace is needed to place and mount the crafted filesystem. UI:N - The attacker performs the mount themselves (loop-mount or device insertion triggering automount); no separate victim has to act, and the crash/OOB happens during mount itself in `btrfs_lookup_dir_item()`. S:U - The out-of-bounds access and any resulting corruption stay within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - Skipping `check_dir_item()`/`check_extent_data()` lets attacker-controlled offsets index past `eb->folios[]`, turning an adjacent heap value into a `struct folio *` that is dereferenced — an effectively arbitrary kernel-memory read, and OOB item data (names, inline extents) can be copied back to userspace via readdir/getxattr/read. I:H - The same unvalidated offsets drive the `btrfs_set_*`/`write_extent_buffer()` and `memmove_extent_buffer()` paths — e.g. `btrfs_delete_one_dir_name()` underflows its length from an unchecked `name_len` — giving an out-of-bounds write through a wild folio pointer that is exploitable for control-flow hijacking. A:H - The reported result is an immediate general protection fault / KASAN wild-memory-access during mount (kernel oops), and the underflowed truncate path reaches a BUG(); the crash is reproducible on demand.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 85d8a826c7cde17f9cca9c4debecb4538bdb6573 to < 9dff3e36ea89e8003516841c27c45af562b6ef44 (affected · git)85d8a826c7cde17f9cca9c4debecb4538bdb6573 to < ef3ba8ce8cf7075b716aa4afcefc3034215878ee (affected · git)85d8a826c7cde17f9cca9c4debecb4538bdb6573 to < e03418abde871314e1a3a550f4c8afb7b89cb273 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.5 (affected)0 to < 6.5 (unaffected · semver)6.6.85 through 6.6.* (unaffected · semver)6.8.10 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4- https://git.kernel.org/stable/c/9dff3e36ea89e8003516841c27c45af562b6ef44
- https://git.kernel.org/stable/c/e03418abde871314e1a3a550f4c8afb7b89cb273
- https://git.kernel.org/stable/c/ef3ba8ce8cf7075b716aa4afcefc3034215878ee
- https://lists.fedoraproject.org/archives/list/[email protected]/message/OTB4HWU2PTVW5NEYHHLOCXDKG3PYA534/
Provider assertions
3Linux · cna
btrfs: make sure that WRITTEN is set on all metadata blocks
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e5cb979c7f2e8f569b7e7cddd7235dbabd1a8275b949b5005b215468d20d67e5
- Ingested
- 23 Sep 2026, 08:23:51 UTC
- Source record
- Official CVE record