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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **Published:** 2026-05-27T12:18:33.107Z
- **Modified:** 2026-11-06T17:17:27.433Z

## Who should check

- Anyone running Linux \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 023545e272f369d487e6a986c1e321c6e04be1da; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< fd4913a53e3b54ad7e161847291439fe445d6356; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< b5b8ade9da452086e78f5d519b90d3769e354853; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 0761447f6f51e1c7997960d8e6559337deed6729; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< d7cf2314dd5e8661c05d076cd627eea9a7f76616; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< b2bd557b75b760e4b9d209112bda19314bd64558; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< ecb7c2484cfc83a93658907580035a8adf1e0a92; ecce1be9f2a366990d0e75dd249fb324e83c34a9; \>= 5.9.7, \< 5.10
- Anyone running Linux 5.10

## 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 and fixed versions

- Linux: \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 023545e272f369d487e6a986c1e321c6e04be1da; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< fd4913a53e3b54ad7e161847291439fe445d6356; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< b5b8ade9da452086e78f5d519b90d3769e354853; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 0761447f6f51e1c7997960d8e6559337deed6729; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< d7cf2314dd5e8661c05d076cd627eea9a7f76616; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< b2bd557b75b760e4b9d209112bda19314bd64558; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< ecb7c2484cfc83a93658907580035a8adf1e0a92; ecce1be9f2a366990d0e75dd249fb324e83c34a9; \>= 5.9.7, \< 5.10 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 5.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45974. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45974.md
Affected: Linux >= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, < 023545e272f369d487e6a986c1e321c6e04be1da; >= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, < fd4913a53e3b54ad7e161847291439fe445d6356; >= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, < b5b8ade9da452086e78f5d519b90d3769e354853; >= 5223cc60b40ae525ae6c94e…
Fixed in: Linux 023545e272f369d487e6a986c1e321c6e04be1da, Linux 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40, Linux 0761447f6f51e1c7997960d8e6559337deed6729, Linux 5.10

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45974 being exploited?

There is no confirmed exploitation: CVE-2026-45974 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45974?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45974?

Linux \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 023545e272f369d487e6a986c1e321c6e04be1da; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< fd4913a53e3b54ad7e161847291439fe445d6356; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< b5b8ade9da452086e78f5d519b90d3769e354853; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< 0761447f6f51e1c7997960d8e6559337deed6729; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< d7cf2314dd5e8661c05d076cd627eea9a7f76616; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< b2bd557b75b760e4b9d209112bda19314bd64558; \>= 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, \< ecb7c2484cfc83a93658907580035a8adf1e0a92; ecce1be9f2a366990d0e75dd249fb324e83c34a9; \>= 5.9.7, \< 5.10; Linux 5.10.

### Is there a fix for CVE-2026-45974?

Yes. Fixed in Linux 023545e272f369d487e6a986c1e321c6e04be1da, Linux 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40, Linux 0761447f6f51e1c7997960d8e6559337deed6729, Linux 5.10. Upgrade Linux to 5.10 or later.

### How do I check if I'm affected by CVE-2026-45974?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45974>

HTML: <https://flawdb.com/CVE-2026-45974> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45974>
