CVE-2026-45838CWE-476

CVE-2026-45838

Medium · published May 27, 2026

CVSS v3.1
5.5
EPSS
0%
Percentile
5.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00166 · 5.6th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2026-05-27T15:16Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 4.19, < 5.10.2585.10.258
linux/linux_kernel≥ 5.11, < 5.15.2095.15.209
linux/linux_kernel≥ 5.16, < 6.1.1756.1.175
linux/linux_kernel≥ 6.2, < 6.6.1416.6.141
linux/linux_kernel≥ 6.7, < 6.12.916.12.91
linux/linux_kernel≥ 6.13, < 6.18.336.18.33
linux/linux_kernel≥ 6.19, < 7.0.107.0.10
References (9)
EPSS history
Timeline
  • 27 MAY 09:24Z
    bpf: fix end-of-list detection in cgroup_storage_get_next_key()
    cvelistv5