CVE-2026-45974 PUBLISHED

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

Assigner: Linux
Reserved: 13.05.2026 Published: 27.05.2026 Updated: 27.05.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to 023545e272f369d487e6a986c1e321c6e04be1da (excl.)
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to fd4913a53e3b54ad7e161847291439fe445d6356 (excl.)
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to b5b8ade9da452086e78f5d519b90d3769e354853 (excl.)
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40 (excl.)
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to 0761447f6f51e1c7997960d8e6559337deed6729 (excl.)
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to d7cf2314dd5e8661c05d076cd627eea9a7f76616 (excl.)
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to b2bd557b75b760e4b9d209112bda19314bd64558 (excl.)
  • affected from 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 to ecb7c2484cfc83a93658907580035a8adf1e0a92 (excl.)
  • Version ecce1be9f2a366990d0e75dd249fb324e83c34a9 is affected
  • affected from 5.9.7 to 5.10 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.10 is affected
  • unaffected from 0 to 5.10 (excl.)
  • unaffected from 5.10.252 to 5.10.* (incl.)
  • unaffected from 5.15.202 to 5.15.* (incl.)
  • unaffected from 6.1.165 to 6.1.* (incl.)
  • unaffected from 6.6.128 to 6.6.* (incl.)
  • unaffected from 6.12.75 to 6.12.* (incl.)
  • unaffected from 6.18.14 to 6.18.* (incl.)
  • unaffected from 6.19.4 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References