CVE-2026-45974

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

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
May 27, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before 023545e272f369d487e6a986c1e321c6e04be1daAffected
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before fd4913a53e3b54ad7e161847291439fe445d6356Affected
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before b5b8ade9da452086e78f5d519b90d3769e354853Affected
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40Affected
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before 0761447f6f51e1c7997960d8e6559337deed6729Affected
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before d7cf2314dd5e8661c05d076cd627eea9a7f76616Affected
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before b2bd557b75b760e4b9d209112bda19314bd64558Affected
  • 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to before ecb7c2484cfc83a93658907580035a8adf1e0a92Affected
  • ecce1be9f2a366990d0e75dd249fb324e83c34a9Affected
  • 5.9.7 to before 5.10Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.252 through 5.10.*Not affected
  • 5.15.202 through 5.15.*Not affected
  • 6.1.165 through 6.1.*Not affected
  • 6.6.128 through 6.6.*Not affected
  • 6.12.75 through 6.12.*Not affected
  • 6.18.14 through 6.18.*Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.