# CVE-2024-35936: btrfs: handle chunk tree lookup error in btrfs\_relocate\_sys\_chunks()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **Published:** 2024-05-19T10:10:42.967Z
- **Modified:** 2026-10-15T01:17:54.220Z

## Who should check

- Anyone running Linux \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< bebd9e0ff90034875c5dfe4bd514fd7055fc7a89; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 576164bd01bd795f8b09fb194b493103506b33c9; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 87299cdaae757f3f41212146cfb5b3af416b8385; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< d1ffa4ae2d591fdd40471074e79954ec45f147f7; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 36c2a2863bc3896243eb724dc3fd4cf9aea633f2; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 0d23b34c68c46cd225b55868bc8a269e3134816d; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 1f9212cdbd005bc55f2b7422e7b560d9c02bd1da; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 7411055db5ce64f836aaffd422396af0075fdc99
- Anyone running Linux 2.6.29

## 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

## Affected and fixed versions

- Linux: \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< bebd9e0ff90034875c5dfe4bd514fd7055fc7a89; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 576164bd01bd795f8b09fb194b493103506b33c9; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 87299cdaae757f3f41212146cfb5b3af416b8385; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< d1ffa4ae2d591fdd40471074e79954ec45f147f7; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 36c2a2863bc3896243eb724dc3fd4cf9aea633f2; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 0d23b34c68c46cd225b55868bc8a269e3134816d; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 1f9212cdbd005bc55f2b7422e7b560d9c02bd1da; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 7411055db5ce64f836aaffd422396af0075fdc99 (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- Upgrade Linux to 7411055db5ce64f836aaffd422396af0075fdc99 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35936. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35936.md
Affected: Linux >= 2b82032c34ec40515d3c45c36cd1961f37977de8, < bebd9e0ff90034875c5dfe4bd514fd7055fc7a89; >= 2b82032c34ec40515d3c45c36cd1961f37977de8, < 576164bd01bd795f8b09fb194b493103506b33c9; >= 2b82032c34ec40515d3c45c36cd1961f37977de8, < 87299cdaae757f3f41212146cfb5b3af416b8385; >= 2b82032c34ec40515d3c45c…
Fixed in: Linux 576164bd01bd795f8b09fb194b493103506b33c9, Linux 87299cdaae757f3f41212146cfb5b3af416b8385, Linux 36c2a2863bc3896243eb724dc3fd4cf9aea633f2, Linux 0d23b34c68c46cd225b55868bc8a269e3134816d, Linux 1f9212cdbd005bc55f2b7422e7b560d9c02bd1da, Linux 7411055db5ce64f836aaffd422396af0075fdc99

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35936 being exploited?

There is no confirmed exploitation: CVE-2024-35936 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35936?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35936?

Linux \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< bebd9e0ff90034875c5dfe4bd514fd7055fc7a89; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 576164bd01bd795f8b09fb194b493103506b33c9; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 87299cdaae757f3f41212146cfb5b3af416b8385; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< d1ffa4ae2d591fdd40471074e79954ec45f147f7; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 36c2a2863bc3896243eb724dc3fd4cf9aea633f2; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 0d23b34c68c46cd225b55868bc8a269e3134816d; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 1f9212cdbd005bc55f2b7422e7b560d9c02bd1da; \>= 2b82032c34ec40515d3c45c36cd1961f37977de8, \< 7411055db5ce64f836aaffd422396af0075fdc99; Linux 2.6.29.

### Is there a fix for CVE-2024-35936?

Yes. Fixed in Linux 576164bd01bd795f8b09fb194b493103506b33c9, Linux 87299cdaae757f3f41212146cfb5b3af416b8385, Linux 36c2a2863bc3896243eb724dc3fd4cf9aea633f2, Linux 0d23b34c68c46cd225b55868bc8a269e3134816d, Linux 1f9212cdbd005bc55f2b7422e7b560d9c02bd1da, Linux 7411055db5ce64f836aaffd422396af0075fdc99. Upgrade Linux to 7411055db5ce64f836aaffd422396af0075fdc99 or later.

### How do I check if I'm affected by CVE-2024-35936?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/bebd9e0ff90034875c5dfe4bd514fd7055fc7a89>
- patch: <https://git.kernel.org/stable/c/576164bd01bd795f8b09fb194b493103506b33c9>
- patch: <https://git.kernel.org/stable/c/87299cdaae757f3f41212146cfb5b3af416b8385>
- patch: <https://git.kernel.org/stable/c/d1ffa4ae2d591fdd40471074e79954ec45f147f7>
- patch: <https://git.kernel.org/stable/c/36c2a2863bc3896243eb724dc3fd4cf9aea633f2>
- patch: <https://git.kernel.org/stable/c/0d23b34c68c46cd225b55868bc8a269e3134816d>
- patch: <https://git.kernel.org/stable/c/1f9212cdbd005bc55f2b7422e7b560d9c02bd1da>
- patch: <https://git.kernel.org/stable/c/7411055db5ce64f836aaffd422396af0075fdc99>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35936>

HTML: <https://flawdb.com/CVE-2024-35936> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35936>
