VDB

CVE-2024-35936

CVE-2024-35936 PUBLISHED

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.

PackageEcosystemFixed in
kernel-livepatch-6.1.87-99.174Amazon Linux1.0-0.amzn2023
kernel-libbpf-develAmazon Linux6.1.87-99.174.amzn2023
linux_kernellinux6.8.6, 6.6.27, 6.1.86, 5.15.155, 5.10.215, 5.4.274, 4.19.312

Affected products

VendorProductVersions
LinuxLinux2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8
LinuxLinux2.6.29, 0, 4.19.312
amazon:2023kernel-livepatch-6.1.87-99.1740
amazon:2023kernel-libbpf-devel0
linuxlinux_kernel2.6.29, 2.6.29, 2.6.29
amazon:2023kernel-headers0
amazon:2023python3-perf0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel0
amazon:2023kernel-modules-extra0
amazon:2023perf0
LinuxLinux2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8, 2b82032c34ec40515d3c45c36cd1961f37977de8
amazon:2kernel-tools-devel0
amazon:2023kernel-tools-devel0
amazon:2023kernel-modules-extra-common0
amazon:2kernel-headers0
amazon:2kernel0
amazon:2kernel-livepatch-4.14.345-262.5610
amazon:2023kernel-libbpf-static0
amazon:2023kernel-devel0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›