What’s Vulnerable › Vulnerabilities
CVE-2026-45974: btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-27 · updated 2026-06-17
Description
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.
Affected products
- Linux kernel: from 5.9.7 before 5.10; from 5.10.1 before 5.10.252; from 5.11 before 5.15.202; from 5.16 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75 — fixed in 5.10, 5.10.252, 5.15.202, 6.1.165, 6.12.75, 6.18.14
How to fix
Upgrade to a fixed version: Linux kernel 5.10, 5.10.252, 5.15.202, 6.1.165. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/023545e272f369d487e6a986c1e321c6e04be1da
- https://git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729
- https://git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40
- https://git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558
- https://git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853
- https://git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616
- https://git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92
- https://git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356
Get alerted when CVE-2026-45974 or the next vulnerability affects your stack