{"api_version":"1","generated_at":"2026-06-05T12:46:51+00:00","cve":"CVE-2026-45974","urls":{"html":"https://cve.report/CVE-2026-45974","api":"https://cve.report/api/cve/CVE-2026-45974.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-45974","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-45974"},"summary":{"title":"btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found\n\nIf btrfs_search_slot_for_read() returns 1, it means we did not find any\nkey greater than or equals to the key we asked for, meaning we have\nreached the end of the tree and therefore the path is not valid. If\nthis happens we need to break out of the loop and stop, instead of\ncontinuing and accessing an invalid path.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-05-27 14:17:14","updated_at":"2026-05-27 14:48:03"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356","name":"https://git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558","name":"https://git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92","name":"https://git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616","name":"https://git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729","name":"https://git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/023545e272f369d487e6a986c1e321c6e04be1da","name":"https://git.kernel.org/stable/c/023545e272f369d487e6a986c1e321c6e04be1da","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853","name":"https://git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40","name":"https://git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-45974","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45974","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 023545e272f369d487e6a986c1e321c6e04be1da git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 fd4913a53e3b54ad7e161847291439fe445d6356 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 b5b8ade9da452086e78f5d519b90d3769e354853 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 0761447f6f51e1c7997960d8e6559337deed6729 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 d7cf2314dd5e8661c05d076cd627eea9a7f76616 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 b2bd557b75b760e4b9d209112bda19314bd64558 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 ecb7c2484cfc83a93658907580035a8adf1e0a92 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ecce1be9f2a366990d0e75dd249fb324e83c34a9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.9.7 5.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.252 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.202 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.165 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.128 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.75 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.14 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19.4 6.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"45974","cve":"CVE-2026-45974","epss":"0.000240000","percentile":"0.073320000","score_date":"2026-06-01","updated_at":"2026-06-02 00:05:21"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/btrfs/qgroup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"023545e272f369d487e6a986c1e321c6e04be1da","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"lessThan":"fd4913a53e3b54ad7e161847291439fe445d6356","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"lessThan":"b5b8ade9da452086e78f5d519b90d3769e354853","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"lessThan":"1ee1d006c9fe4d6be5527ab1c84216b80cccbe40","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"lessThan":"0761447f6f51e1c7997960d8e6559337deed6729","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"lessThan":"d7cf2314dd5e8661c05d076cd627eea9a7f76616","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"lessThan":"b2bd557b75b760e4b9d209112bda19314bd64558","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"lessThan":"ecb7c2484cfc83a93658907580035a8adf1e0a92","status":"affected","version":"5223cc60b40ae525ae6c94e98824129f1a5b4ae5","versionType":"git"},{"status":"affected","version":"ecce1be9f2a366990d0e75dd249fb324e83c34a9","versionType":"git"},{"lessThan":"5.10","status":"affected","version":"5.9.7","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/btrfs/qgroup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.10"},{"lessThan":"5.10","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.252","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.202","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.165","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.128","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.75","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.14","versionType":"semver"},{"lessThanOrEqual":"6.19.*","status":"unaffected","version":"6.19.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.252","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.202","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.165","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.128","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.75","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.14","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19.4","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found\n\nIf btrfs_search_slot_for_read() returns 1, it means we did not find any\nkey greater than or equals to the key we asked for, meaning we have\nreached the end of the tree and therefore the path is not valid. If\nthis happens we need to break out of the loop and stop, instead of\ncontinuing and accessing an invalid path."}],"providerMetadata":{"dateUpdated":"2026-05-27T12:18:33.107Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/023545e272f369d487e6a986c1e321c6e04be1da"},{"url":"https://git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356"},{"url":"https://git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853"},{"url":"https://git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40"},{"url":"https://git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729"},{"url":"https://git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616"},{"url":"https://git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558"},{"url":"https://git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92"}],"title":"btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-45974","datePublished":"2026-05-27T12:18:33.107Z","dateReserved":"2026-05-13T15:03:33.090Z","dateUpdated":"2026-05-27T12:18:33.107Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-05-27 14:17:14","lastModifiedDate":"2026-05-27 14:48:03","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"45974","Ordinal":"1","Title":"btrfs: fix invalid leaf access in btrfs_quota_enable() if ref ke","CVE":"CVE-2026-45974","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"45974","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found\n\nIf btrfs_search_slot_for_read() returns 1, it means we did not find any\nkey greater than or equals to the key we asked for, meaning we have\nreached the end of the tree and therefore the path is not valid. If\nthis happens we need to break out of the loop and stop, instead of\ncontinuing and accessing an invalid path.","Type":"Description","Title":"btrfs: fix invalid leaf access in btrfs_quota_enable() if ref ke"}]}}}