VDB

CVE-2026-45838

CVE-2026-45838 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.12-modules-extra-commonAmazon Linux1:6.12.92-122.166.amzn2023
kernelAmazon Linux1:6.1.175-219.357.amzn2023
kernel-develAmazon Linux1:6.1.175-219.357.amzn2023
kernel6.12-develAmazon Linux1:6.12.92-122.166.amzn2023
python3-perf6.12Amazon Linux1:6.12.92-122.166.amzn2023
kernel-livepatch-6.12.92-122.166Amazon Linux1:1.0-0.amzn2023
bpftool6.12Amazon Linux1:6.12.92-122.166.amzn2023
kernel6.18-develAmazon Linux1:6.18.33-63.124.amzn2023
kernel-headersAmazon Linux1:6.1.175-219.357.amzn2023
kernel-tools-develAmazon Linux1:6.1.175-219.357.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.33-63.124.amzn2023
python3-perf6.18Amazon Linux1:6.18.33-63.124.amzn2023

2 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinuxde9cbbaadba5adf88a19e46df61f7054000838f6, de9cbbaadba5adf88a19e46df61f7054000838f6, de9cbbaadba5adf88a19e46df61f7054000838f6
LinuxLinux4.19, 0, 5.10.258
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel0
amazon:2023kernel-devel0
amazon:2023kernel6.12-devel0
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.92-122.1660
amazon:2023bpftool6.120
amazon:2023kernel6.18-devel0
amazon:2023kernel-headers0
amazon:2023kernel-tools-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023python3-perf6.180
amazon:2023perf0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
linuxlinux_kernel4.19, 4.19, 4.19
amazon:2023kernel6.18-headers0
amazon:2023kernel-modules-extra0
amazon:2023bpftool0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›