# CVE-2026-45974: btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-27T12:18:33.107Z
- Modified: 2026-11-06T17:17:27.433Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before 023545e272f369d487e6a986c1e321c6e04be1da; from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before fd4913a53e3b54ad7e161847291439fe445d6356; from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before b5b8ade9da452086e78f5d519b90d3769e354853; from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40; from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before 0761447f6f51e1c7997960d8e6559337deed6729; from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before d7cf2314dd5e8661c05d076cd627eea9a7f76616; from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before b2bd557b75b760e4b9d209112bda19314bd64558; from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 before ecb7c2484cfc83a93658907580035a8adf1e0a92; ecce1be9f2a366990d0e75dd249fb324e83c34a9; from 5.9.7 before 5.10; 5.10 (not affected: before 5.10; from 5.10.252 up to 5.10.*; from 5.15.202 up to 5.15.*; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux 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; from 6.13 before 6.18.14; from 6.19 before 6.19.4; 5.10

## References

- <https://git.kernel.org/stable/c/023545e272f369d487e6a986c1e321c6e04be1da> (patch)
- <https://git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356> (patch)
- <https://git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853> (patch)
- <https://git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40> (patch)
- <https://git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729> (patch)
- <https://git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616> (patch)
- <https://git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558> (patch)
- <https://git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92> (patch)

## Sources

- CVE List: [CVE-2026-45974](https://www.cve.org/CVERecord?id=CVE-2026-45974), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-45974](https://nvd.nist.gov/vuln/detail/CVE-2026-45974), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-45974 · Whole record: https://cve.day/CVE-2026-45974.json · Rebuilt by cve.day 2026-11-25T22:59:22.528Z
