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.
Published: 2026-05-27
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is in the Linux kernel’s BPF subsystem, where the cgroup_storage_get_next_key() routine misidentified the end of a linked list and dereferenced a bogus pointer that overlapped internal map fields. The resulting out‑of‑bounds read copies kernel data into user space, exposing sensitive information but not allowing arbitrary code execution.

Affected Systems

All Linux kernels that have not incorporated the commit that replaces list_next_entry() with list_entry_is_head() in the BPF cgroup storage code. Administrators should verify that the running kernel contains the patch that fixed end‑of‑list detection, as any earlier device is vulnerable.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while an EPSS score of less than 1% shows a low but nonzero probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. An attacker who can invoke the BPF interface to query cgroup keys would trigger the misdetection and read kernel memory; the required privileges depend on the system’s BPF key query permissions, but the attack vector is limited to interaction with the BPF subsystem.

Generated by OpenCVE AI on May 28, 2026 at 06:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the BPF cgroup storage fix, ensuring the commit that replaces list_next_entry() with list_entry_is_head() is present.
  • If a kernel update is not yet possible, restrict or disable user access to BPF key queries that touch cgroup storage, such as by tightening security policies or using seccomp to limit relevant system calls.
  • Monitor BPF subsystem activity for abnormal key‑query patterns and review logs for related errors to detect attempts to exploit the flaw.

Generated by OpenCVE AI on May 28, 2026 at 06:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 01 Jun 2026 17:00:00 +0000


Thu, 28 May 2026 05:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-200

Thu, 28 May 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Wed, 27 May 2026 12:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-200

Wed, 27 May 2026 10:30:00 +0000

Type Values Removed Values Added
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.
Title bpf: fix end-of-list detection in cgroup_storage_get_next_key()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-14T17:46:05.613Z

Reserved: 2026-05-13T15:03:33.077Z

Link: CVE-2026-45838

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T11:16:23.130

Modified: 2026-06-01T17:17:11.967

Link: CVE-2026-45838

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-45838 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T06:30:10Z

Weaknesses