Bug 2481870 (CVE-2026-45838) - CVE-2026-45838 kernel: bpf: fix end-of-list detection in cgroup_storage_get_next_key()
Summary: CVE-2026-45838 kernel: bpf: fix end-of-list detection in cgroup_storage_get_n...
Keywords:
Status: NEW
Alias: CVE-2026-45838
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-27 11:01 UTC by OSIDB Bzimport
Modified: 2026-05-27 12:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-27 11:01:47 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.