CVE-2024-35798
published high CVSS 3.1 · 7.8btrfs: fix race in read_extent_buffer_pages()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd7172f52e9933b6ec9305e7fe6e829e3939dba04 to < 0427c8ef8bbb7f304de42ef51d69c960e165e052 · d7172f52e9933b6ec9305e7fe6e829e3939dba04 to < 3a25878a3378adce5d846300c9570f15aa7f7a80 · d7172f52e9933b6ec9305e7fe6e829e3939dba04 to < 2885d54af2c2e1d910e20d5c8045bae40e02fbc1 · d7172f52e9933b6ec9305e7fe6e829e3939dba04 to < ef1e68236b9153c27cb7cf29ead0c532870d4215 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.6.24 through 6.6.* (unaffected · semver) · 6.7.12 through 6.7.* (unaffected · semver) · 6.8.3 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 | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-aws | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-aws-cloud-tools-6.8.0-1009 | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-aws-headers-6.8.0-1009 | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-aws-tools-6.8.0-1009 | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-azure | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-azure-cloud-tools-6.8.0-1008 | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-azure-headers-6.8.0-1008 | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-azure-tools-6.8.0-1008 | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1004-gke | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1005-raspi | Advisory build | 6.8.0-1005.5 | USN-6816-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1006-ibm | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1006-oem | Advisory build | 6.8.0-1006.6 | USN-6817-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1006-oracle | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1006-oracle-64k | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1008-azure | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1008-gcp | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1009-aws | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-35-generic-64k | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-35-lowlatency | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-35-lowlatency-64k | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-1008-azure | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-1009-aws | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-35 | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-35-lowlatency | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-cloud-tools-common | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-gcp | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-gcp-headers-6.8.0-1008 | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-gcp-tools-6.8.0-1008 | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-gke | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-gke-headers-6.8.0-1004 | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-gke-tools-6.8.0-1004 | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-headers-6.8.0-1004-gke | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-headers-6.8.0-1005-raspi | Advisory build | 6.8.0-1005.5 | USN-6816-1 |
| Ubuntu | noble | linux-headers-6.8.0-1006-ibm | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-headers-6.8.0-1006-oem | Advisory build | 6.8.0-1006.6 | USN-6817-2 |
| Ubuntu | noble | linux-headers-6.8.0-1006-oracle | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-headers-6.8.0-1006-oracle-64k | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-headers-6.8.0-1008-azure | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-headers-6.8.0-1008-gcp | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-headers-6.8.0-1009-aws | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-headers-6.8.0-35 | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-headers-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-headers-6.8.0-35-generic-64k | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-headers-6.8.0-35-lowlatency | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-headers-6.8.0-35-lowlatency-64k | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-ibm | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-ibm-cloud-tools-common | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-ibm-headers-6.8.0-1006 | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-ibm-source-6.8.0 | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-ibm-tools-6.8.0-1006 | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-image-6.8.0-1005-raspi | Advisory build | 6.8.0-1005.5 | USN-6816-1 |
| Ubuntu | noble | linux-image-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1004-gke | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1006-ibm | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1006-oem | Advisory build | 6.8.0-1006.6 | USN-6817-2 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1006-oracle | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1006-oracle-64k | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1008-azure | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1008-gcp | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1009-aws | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-35-generic-64k | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-35-lowlatency | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-35-lowlatency-64k | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lib-rust-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-6.8.0-35 | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-common | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency-headers-6.8.0-35 | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency-lib-rust-6.8.0-35-lowlatency | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency-tools-6.8.0-35 | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency-tools-common | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-lowlatency-tools-host | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-modules-6.8.0-1004-gke | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-modules-6.8.0-1005-raspi | Advisory build | 6.8.0-1005.5 | USN-6816-1 |
| Ubuntu | noble | linux-modules-6.8.0-1006-ibm | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-modules-6.8.0-1006-oem | Advisory build | 6.8.0-1006.6 | USN-6817-2 |
| Ubuntu | noble | linux-modules-6.8.0-1006-oracle | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-modules-6.8.0-1006-oracle-64k | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-modules-6.8.0-1008-azure | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-modules-6.8.0-1008-gcp | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-modules-6.8.0-1009-aws | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-modules-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-modules-6.8.0-35-generic-64k | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-modules-6.8.0-35-lowlatency | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-modules-6.8.0-35-lowlatency-64k | Advisory build | 6.8.0-35.35.1 | USN-6816-1 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1004-gke | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1006-ibm | Advisory build | 6.8.0-1006.6 | USN-6816-1 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1006-oracle | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1006-oracle-64k | Advisory build | 6.8.0-1006.6 | USN-6878-1 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1008-azure | Advisory build | 6.8.0-1008.8 | USN-6817-3 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1008-gcp | Advisory build | 6.8.0-1008.9 | USN-6817-1 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1009-aws | Advisory build | 6.8.0-1009.9 | USN-6817-1 |
| Ubuntu | noble | linux-modules-extra-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-modules-ipu6-6.8.0-1006-oem | Advisory build | 6.8.0-1006.6 | USN-6817-2 |
| Ubuntu | noble | linux-modules-ipu6-6.8.0-35-generic | Advisory build | 6.8.0-35.35 | USN-6816-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.8.0-1004-gke | Advisory build | 6.8.0-1004.7 | USN-6817-3 |
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 race in read_extent_buffer_pages() There are reports from tree-checker that detects corrupted nodes, without any obvious pattern so possibly an overwrite in memory. After some debugging it turns out there's a race when reading an extent buffer the uptodate status can be missed. To prevent concurrent reads for the same extent buffer, read_extent_buffer_pages() performs these checks: /* (1) */ if (test_bit(EXTENT_BUFFER_UPTODATE, &eb->bflags)) return 0; /* (2) */ if (test_and_set_bit(EXTENT_BUFFER_READING, &eb->bflags)) goto done; At this point, it seems safe to start the actual read operation. Once that completes, end_bbio_meta_read() does /* (3) */ set_extent_buffer_uptodate(eb); /* (4) */ clear_bit(EXTENT_BUFFER_READING, &eb->bflags); Normally, this is enough to ensure only one read happens, and all other callers wait for it to finish before returning. Unfortunately, there is a racey interleaving: Thread A | Thread B | Thread C ---------+----------+--------- (1) | | | (1) | (2) | | (3) | | (4) | | | (2) | | | (1) When this happens, thread B kicks of an unnecessary read. Worse, thread C will see UPTODATE set and return immediately, while the read from thread B is still in progress. This race could result in tree-checker errors like this as the extent buffer is concurrently modified: BTRFS critical (device dm-0): corrupted node, root=256 block=8550954455682405139 owner mismatch, have 11858205567642294356 expect [256, 18446744073709551360] Fix it by testing UPTODATE again after setting the READING bit, and if it's been set, skip the unnecessary read. [ minor update of changelog ]
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 code is reached through ordinary filesystem syscalls (open/stat/read/readdir/write) against a locally mounted btrfs filesystem. No network protocol handler is involved, so this requires local system access. AC:L - The attacker controls every side of the race — multiple threads performing concurrent lookups of the same cold metadata block, with readahead supplying the WAIT_NONE submitter — and can retry indefinitely while adding memory and CPU pressure to widen the window. The race is known to trigger spontaneously in production without any attacker. PR:L - Any unprivileged local user with read access to a mounted btrfs filesystem can drive concurrent metadata reads of the same extent buffer; btrfs is the default root filesystem on several major distributions. No capability, ioctl, mount privilege, or namespace trick is needed. UI:N - The attacker triggers the race entirely with its own file I/O against an already-mounted filesystem. No victim action or cooperation is required. S:U - The corruption occurs within kernel memory and on-disk metadata managed by the same kernel security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - Threads consume extent-buffer contents while DMA concurrently overwrites them, yielding torn header/item fields; garbage node blockptrs and nritems drive reads of arbitrary logical addresses, and the resulting heap out-of-bounds access on struct btrfs_path is leverageable for kernel memory disclosure. I:H - btrfs_search_slot() writes p->nodes[level] and p->slots[level] with an unvalidated 8-bit level taken from the racing memory, giving an out-of-bounds write of a kernel pointer past a kmalloc'd btrfs_path; separately, a leaf modified under an in-flight overwrite is checksummed and written back, causing persistent on-disk metadata corruption. A:H - The documented outcome is tree-checker "corrupted node" reports leading to -EUCLEAN and transaction abort with the filesystem forced read-only, and the out-of-bounds writes and garbage tree traversal readily produce ASSERT/BUG_ON hits and kernel oopses.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d7172f52e9933b6ec9305e7fe6e829e3939dba04 to < 0427c8ef8bbb7f304de42ef51d69c960e165e052 (affected · git)d7172f52e9933b6ec9305e7fe6e829e3939dba04 to < 3a25878a3378adce5d846300c9570f15aa7f7a80 (affected · git)d7172f52e9933b6ec9305e7fe6e829e3939dba04 to < 2885d54af2c2e1d910e20d5c8045bae40e02fbc1 (affected · git)d7172f52e9933b6ec9305e7fe6e829e3939dba04 to < ef1e68236b9153c27cb7cf29ead0c532870d4215 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.5 (affected)0 to < 6.5 (unaffected · semver)6.6.24 through 6.6.* (unaffected · semver)6.7.12 through 6.7.* (unaffected · semver)6.8.3 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
3Linux · cna
btrfs: fix race in read_extent_buffer_pages()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 474e1e803c67a85c554d1a27415097a1a264e68e2245ecf21e9cd3abaa229845
- Ingested
- 23 Sep 2026, 08:23:51 UTC
- Source record
- Official CVE record