CVE-2026-45838·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.0.10
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.0.10
Fixed in: 7.0.10
How to fix this CVE
Update your Linux kernel to version 7.0.10 or later to fix the cgroup_storage_get_next_key() function, which was incorrectly handling list termination and could expose internal map data to unprivileged users. This patch replaces faulty pointer logic with proper list boundary detection. Apply the update immediately to all affected systems running kernel versions 6.19 through 7.0.9.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — vulnerable versions are 6.19.x through 7.0.9
- Verify the bpf subsystem is loaded: grep bpf /proc/modules — if present, the vulnerable code path is available
- Review kernel logs for cgroup_storage access patterns: journalctl -u kernel | grep -i cgroup_storage
- Confirm the fix by checking for the presence of list_entry_is_head() in kernel source: grep -r 'list_entry_is_head' /lib/modules/$(uname -r)/kernel/
FAQ
What is CVE-2026-45838?
This vulnerability in the Linux kernel's BPF cgroup storage iterator fails to properly detect the end of a list, causing the function to read memory from invalid pointers and expose internal kernel map structures to unprivileged local users.
Is CVE-2026-45838 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2026-45838?
Kernel versions 6.19 through 7.0.9 are affected. Version 7.0.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-45838?
Run 'uname -r' and compare your kernel version against the affected range (6.19-7.0.9). If your version falls within this range, your system is vulnerable.
Does Defensia detect CVE-2026-45838?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-45838 will appear in your dashboard with remediation steps.
Related Kernel CVEs
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/32ce55d424395904986f5066f8755f6cb9993377
- https://git.kernel.org/stable/c/5828b9e5b272ecff7cf5d345128d3de7324117f7
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-45838. Free for 1 server.
Get started free