CVE-2026-45838
bpf: fix end-of-list detection in cgroup_storage_get_next_key()
Reported by linux · Published May 27, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: fix end-of-list detection in cgroup_storage_get_next_key() list_next_entry() never returns NULL -- when the current element is the last entry it wraps to the list head via container_of(). The subsequent NULL check is therefore dead code and get_next_key() never returns -ENOENT for the last element, instead reading storage->key from a bogus pointer that aliases internal map fields and copying the result to userspace. Replace it with list_entry_is_head() so the function correctly returns -ENOENT when there are no more entries.
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.12-modules-extra-common | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel-livepatch-6.12.92-122.166 | Amazon Linux | 1:1.0-0.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.92-122.166.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
2 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | de9cbbaadba5adf88a19e46df61f7054000838f6, de9cbbaadba5adf88a19e46df61f7054000838f6, de9cbbaadba5adf88a19e46df61f7054000838f6 |
| Linux | Linux | 4.19, 0, 5.10.258 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.92-122.166 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | perf | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| linux | linux_kernel | 4.19, 4.19, 4.19 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
…and 18 more
Timeline
- May 26, 2026 CVE Published
- May 27, 2026 EPSS Score (17 in total, the first dated here)
- May 29, 2026 Security Advisory (34 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (29 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-45838
vulnetix vdb fixes CVE-2026-45838
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-45838/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart