CVE-2026-45974
btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found
Reported by linux · Published May 27, 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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.18 | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel-livepatch-6.18.15-14.217 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, 5223cc60b40ae525ae6c94e98824129f1a5b4ae5, 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 |
| Linux | Linux | 5.10, 0, 5.10.252 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.15-14.217 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-headers | 0 |
| linux | linux_kernel | 5.10, 5.10, 5.10 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.166-197.305 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | bpftool | 0 |
…and 26 more
Timeline
- May 27, 2026 CVE Published
- May 27, 2026 CVE Updated
- May 28, 2026 EPSS Score (14 in total, the first dated here)
- May 29, 2026 Security Advisory (131 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (128 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-45974
vulnetix vdb fixes CVE-2026-45974
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-45974/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart