CVE-2024-35936
btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()
Reported by linux · Published May 19, 2024
In the Linux kernel, the following vulnerability has been resolved: btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks() The unhandled case in btrfs_relocate_sys_chunks() loop is a corruption, as it could be caused only by two impossible conditions: - at first the search key is set up to look for a chunk tree item, with offset -1, this is an inexact search and the key->offset will contain the correct offset upon a successful search, a valid chunk tree item cannot have an offset -1 - after first successful search, the found_key corresponds to a chunk item, the offset is decremented by 1 before the next loop, it's impossible to find a chunk item there due to alignment and size constraints
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-livepatch-6.1.87-99.174 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.87-99.174.amzn2023 |
| linux_kernel | linux | 6.8.6, 6.6.27, 6.1.86, 5.15.155, 5.10.215, 5.4.274, 4.19.312 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8 |
| Linux | Linux | 2.6.29, 0, 4.19.312 |
| amazon:2023 | kernel-livepatch-6.1.87-99.174 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| linux | linux_kernel | 2.6.29, 2.6.29, 2.6.29 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| Linux | Linux | 2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2 | kernel | 0 |
| amazon:2 | kernel-livepatch-4.14.345-262.561 | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-devel | 0 |
…and 7 more
Timeline
- May 19, 2024 CVE Published
- May 20, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (16 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 10, 2026 Security Advisory (444 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (339 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-35936
vulnetix vdb fixes CVE-2024-35936
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35936/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart