CVE-2024-35936

Source
https://cve.org/CVERecord?id=CVE-2024-35936
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35936.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35936
Downstream
Related
Published
2024-05-19T10:10:42.967Z
Modified
2026-03-23T05:09:06.019224144Z
Summary
btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: handle chunk tree lookup error in btrfsrelocatesys_chunks()

The unhandled case in btrfsrelocatesys_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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35936.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2b82032c34ec40515d3c45c36cd1961f37977de8
Fixed
bebd9e0ff90034875c5dfe4bd514fd7055fc7a89
Fixed
576164bd01bd795f8b09fb194b493103506b33c9
Fixed
87299cdaae757f3f41212146cfb5b3af416b8385
Fixed
d1ffa4ae2d591fdd40471074e79954ec45f147f7
Fixed
36c2a2863bc3896243eb724dc3fd4cf9aea633f2
Fixed
0d23b34c68c46cd225b55868bc8a269e3134816d
Fixed
1f9212cdbd005bc55f2b7422e7b560d9c02bd1da
Fixed
7411055db5ce64f836aaffd422396af0075fdc99

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35936.json"