CVE-2026-45974

btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found

MEDIUM
5.5
CVSS Score
Published: May 27, 2026 at 12:18 PM UTC
Updated: June 17, 2026 at 10:52 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.9.75.10 ≤ v < 5.10.2525.10 ≤ v < 5.15.2025.10 ≤ v < 6.1.1655.10 ≤ v < 6.12.755.10 ≤ v < 6.18.145.10 ≤ v < 6.19.45.10 ≤ v < 6.6.1285.10 ≤ v < 7.05.10.1 ≤ v < 5.10.2525.11 ≤ v < 5.15.2025.16 ≤ v < 6.1.1655.9.7 ≤ v < 5.106.13 ≤ v < 6.18.146.19 ≤ v < 6.19.46.2 ≤ v < 6.6.1286.7 ≤ v < 6.12.755.105.10 rc25.10 rc35.10 rc45.10 rc55.10 rc65.10 rc75.9.75223cc60b40ae525ae6c94e98824129f1a5b4ae5ecce1be9f2a366990d0e75dd249fb324e83c34a9
Vendor states this is fixed in 023545e272f369d487e6a986c1e321c6e04be1da (fixed)
Vendor states this is fixed in 0761447f6f51e1c7997960d8e6559337deed6729 (fixed)
Vendor states this is fixed in 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40 (fixed)
Vendor states this is fixed in b2bd557b75b760e4b9d209112bda19314bd64558 (fixed)
Vendor states this is fixed in b5b8ade9da452086e78f5d519b90d3769e354853 (fixed)
Vendor states this is fixed in d7cf2314dd5e8661c05d076cd627eea9a7f76616 (fixed)
Vendor states this is fixed in ecb7c2484cfc83a93658907580035a8adf1e0a92 (fixed)
Vendor states this is fixed in fd4913a53e3b54ad7e161847291439fe445d6356 (fixed)
Vendor states this is fixed in 5.10 (unaffected)
Vendor states this is fixed in 5.10.252 (unaffected)
Vendor states this is fixed in 5.15.202 (unaffected)
Vendor states this is fixed in 6.1.165 (unaffected)
Vendor states this is fixed in 6.12.75 (unaffected)
Vendor states this is fixed in 6.18.14 (unaffected)
Vendor states this is fixed in 6.19.4 (unaffected)
Vendor states this is fixed in 6.6.128 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card