Medium severity · published May 27, 2026
CVE-2026-45838
bpf: fix end-of-list detection in cgroup_storage_get_next_key()
5.5
CVSS
0.1%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 3% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
4.19 before 5.10.258; 5.11 before 5.15.209; 5.16 before 6.1.175; 6.2 before 6.6.141; 6.7 before 6.12.91; 6.13 before 6.18.33; +1 more · source: NVD
LI
Linux · Linux
de9cbbaadba5adf88a19e46df61f7054000838f6 before 0f3d9dd5e1fd52b39e25328307c6a694e994ffe3; de9cbbaadba5adf88a19e46df61f7054000838f6 before 26d3339e465e54107bd85884341d1609c5300d6a; de9cbbaadba5adf88a19e46df61f7054000838f6 before 2c88b2d96e1d4d0c7c4589a4593d4cdee6d332d6; de9cbbaadba5adf88a19e46df61f7054000838f6 before b4b5a20bed82130da2f2818f04d52378952fbd0b; de9cbbaadba5adf88a19e46df61f7054000838f6 before 85a2f30e40f7468db732f55659bc6318874f49af; de9cbbaadba5adf88a19e46df61f7054000838f6 before 32ce55d424395904986f5066f8755f6cb9993377; +3 more · source: vendor