# CVE-2024-35936: btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-19T10:10:42.967Z
- Modified: 2026-10-15T01:17:54.220Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 2b82032c34ec40515d3c45c36cd1961f37977de8 before bebd9e0ff90034875c5dfe4bd514fd7055fc7a89; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 576164bd01bd795f8b09fb194b493103506b33c9; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 87299cdaae757f3f41212146cfb5b3af416b8385; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before d1ffa4ae2d591fdd40471074e79954ec45f147f7; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 36c2a2863bc3896243eb724dc3fd4cf9aea633f2; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 0d23b34c68c46cd225b55868bc8a269e3134816d; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 1f9212cdbd005bc55f2b7422e7b560d9c02bd1da; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 7411055db5ce64f836aaffd422396af0075fdc99; 2.6.29 (not affected: before 2.6.29; from 4.19.312 up to 4.19.*; from 5.4.274 up to 5.4.*; from 5.10.215 up to 5.10.*; from 5.15.155 up to 5.15.*; from 6.1.86 up to 6.1.*; from 6.6.27 up to 6.6.*; from 6.8.6 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: before 4.19.312; from 4.20 before 5.4.274; from 5.5 before 5.10.215; from 5.11 before 5.15.155; from 5.16 before 6.1.86; from 6.2 before 6.6.27; from 6.7 before 6.8.6
- debian debian_linux: 10.0

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-35936](https://www.cve.org/CVERecord?id=CVE-2024-35936), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-35936](https://nvd.nist.gov/vuln/detail/CVE-2024-35936), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-35936 · Whole record: https://cve.day/CVE-2024-35936.json · Rebuilt by cve.day 2026-11-25T22:58:40.612Z
