CVE-2024-35936

btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()

No CVSS score yet EPSS 0.23%

Published 19 May 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-35936

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35936 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 20 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before bebd9e0ff90034875c5dfe4bd514fd7055fc7a89
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before 576164bd01bd795f8b09fb194b493103506b33c9
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before 87299cdaae757f3f41212146cfb5b3af416b8385
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before d1ffa4ae2d591fdd40471074e79954ec45f147f7
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before 36c2a2863bc3896243eb724dc3fd4cf9aea633f2
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before 0d23b34c68c46cd225b55868bc8a269e3134816d
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before 1f9212cdbd005bc55f2b7422e7b560d9c02bd1da
affected from 2b82032c34ec40515d3c45c36cd1961f37977de8, before 7411055db5ce64f836aaffd422396af0075fdc99
Other versions: unaffected
Linux
affected 2.6.29
unaffected before 2.6.29
unaffected from 4.19.312 up to and including 4.19.*
unaffected from 5.4.274 up to and including 5.4.*
unaffected from 5.10.215 up to and including 5.10.*
unaffected from 5.15.155 up to and including 5.15.*
unaffected from 6.1.86 up to and including 6.1.*
unaffected from 6.6.27 up to and including 6.6.*
unaffected from 6.8.6 up to and including 6.8.*
unaffected 6.9 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35936 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35936

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-35936
trivy image --scanners vuln IMAGE | grep CVE-2024-35936

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-35936 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.