btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2b82032c34ec40515d3c45c36cd1961f37977de8 · < 0d23b34c68c46cd225b55868bc8a269e3134816d| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The btrfs_relocate_sys_chunks() loop does not handle a chunk-tree lookup error associated with corruption. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with btrfs should check their systems; affected versions were not specified.