btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 · < d7cf2314dd5e8661c05d076cd627eea9a7f76616| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found
If btrfs_search_slot_for_read() returns 1, it means we did not find any key greater than or equals to the key we asked for, meaning we have reached the end of the tree and therefore the path is not valid. If this happens we need to break out of the loop and stop, instead of continuing and accessing an invalid path.
From the CVE record · Linux
The Linux kernel’s btrfs_quota_enable() can access an invalid tree path when a reference key is not found at the end of the tree. The input does not specify what an attacker could do or whether network access, authentication, or user interaction is required.
Operators running the Linux kernel with btrfs should check their versions; affected versions are not specified.