CVE-2024-35936

btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()

State
Published
Severity
Not scored
Published
May 19, 2024
Updated
Oct 15, 2026
Reserved
May 17, 2024

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before bebd9e0ff90034875c5dfe4bd514fd7055fc7a89Affected
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before 576164bd01bd795f8b09fb194b493103506b33c9Affected
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before 87299cdaae757f3f41212146cfb5b3af416b8385Affected
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before d1ffa4ae2d591fdd40471074e79954ec45f147f7Affected
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before 36c2a2863bc3896243eb724dc3fd4cf9aea633f2Affected
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before 0d23b34c68c46cd225b55868bc8a269e3134816dAffected
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before 1f9212cdbd005bc55f2b7422e7b560d9c02bd1daAffected
  • 2b82032c34ec40515d3c45c36cd1961f37977de8 to before 7411055db5ce64f836aaffd422396af0075fdc99Affected
LinuxLinux
  • 2.6.29Affected
  • before 2.6.29Not affected
  • 4.19.312 through 4.19.*Not affected
  • 5.4.274 through 5.4.*Not affected
  • 5.10.215 through 5.10.*Not affected
  • 5.15.155 through 5.15.*Not affected
  • 6.1.86 through 6.1.*Not affected
  • 6.6.27 through 6.6.*Not affected
  • 6.8.6 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.