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

Summary

CVECVE-2026-45974
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-27 14:17:14 UTC
Updated2026-05-27 14:48:03 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.000240000 probability, percentile 0.073320000 (date 2026-06-01)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 023545e272f369d487e6a986c1e321c6e04be1da git Not specified
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 fd4913a53e3b54ad7e161847291439fe445d6356 git Not specified
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 b5b8ade9da452086e78f5d519b90d3769e354853 git Not specified
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40 git Not specified
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 0761447f6f51e1c7997960d8e6559337deed6729 git Not specified
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 d7cf2314dd5e8661c05d076cd627eea9a7f76616 git Not specified
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 b2bd557b75b760e4b9d209112bda19314bd64558 git Not specified
CNA Linux Linux affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 ecb7c2484cfc83a93658907580035a8adf1e0a92 git Not specified
CNA Linux Linux affected ecce1be9f2a366990d0e75dd249fb324e83c34a9 git Not specified
CNA Linux Linux affected 5.9.7 5.10 semver Not specified
CNA Linux Linux affected 5.10 Not specified
CNA Linux Linux unaffected 5.10 semver Not specified
CNA Linux Linux unaffected 5.10.252 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.202 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.165 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.128 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.75 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.14 6.18.* semver Not specified
CNA Linux Linux unaffected 6.19.4 6.19.* semver Not specified
CNA Linux Linux unaffected 7.0 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/023545e272f369d487e6a986c1e321c6e04be1da 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report