Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93795 Overview
CVE-2026-93795 is a memory leak vulnerability in the Linux kernel's block I/O cgroup (blk-cgroup) subsystem. The flaw resides in the blkg_create() function, where a failure in radix_tree_insert() triggers an incorrect error path. The error path leaks the blkg structure, its per-CPU I/O statistics, policy data, the parent blkg reference, and the cgroup CSS reference. The leaked CSS reference prevents the associated cgroup from ever being destroyed. The issue has been resolved upstream in the stable Linux kernel tree.
Critical Impact
Repeated failures of radix_tree_insert() during block I/O cgroup creation permanently leak kernel memory and prevent cgroup teardown, degrading long-running systems that make heavy use of cgroup-based I/O control.
Affected Products
- Linux kernel versions containing the pre-patch blkg_create() logic in block/blk-cgroup.c
- Stable kernel branches prior to the fix commits 4c0d150f, 6e85f02d, and dbbca207
- Linux distributions shipping affected stable kernels until downstream backports land
Discovery Timeline
- 2026-09-24 - CVE-2026-93795 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93795
Vulnerability Analysis
The vulnerability is a kernel memory leak with secondary state corruption in the block cgroup accounting layer [CWE-401]. When blkg_create() allocates a block cgroup (blkg) structure and attempts to register it via radix_tree_insert(), the function must unwind cleanly on failure. The pre-patch error handler mishandles two concerns.
First, the handler sets blkg->online = true unconditionally, including on the failure path. A blkg that was never fully inserted is marked as online, which can mislead subsequent lookups and policy traversals that assume the online flag reflects completed registration.
Second, the handler calls blkg_put() to drop the reference. However, the blkg refcount is still in per-CPU mode at this point. percpu_ref_put() only performs a this_cpu_sub() and never checks for zero, so blkg_release() is never invoked. The structure, its per-CPU iostat counters, policy data, the parent blkg reference, and the cgroup CSS reference are leaked. Because the CSS reference leaks, the owning cgroup can no longer be destroyed.
Root Cause
The root cause is an ordering mismatch between reference-count mode and reference release. The error path must transition the per-CPU refcount to atomic mode via percpu_ref_kill() before any put can drive it to zero and trigger release. The pre-patch code assumed blkg_put() was sufficient, which is only true after percpu_ref_kill() has been called, as done in blkg_destroy().
Attack Vector
The vulnerability is reachable from any workload path that creates block cgroups and encounters radix_tree_insert() failure, typically under memory pressure. A local user with permission to create cgroups and attach block devices can repeatedly trigger the failure path to accumulate kernel memory leaks and prevent cgroup destruction. The issue does not appear to be remotely exploitable and no public exploit is listed. See the upstream fixes for the exact source changes: commit 4c0d150f, commit 6e85f02d, and commit dbbca207.
Detection Methods for CVE-2026-93795
Indicators of Compromise
- Steady growth of kmalloc slab usage attributable to blkcg and blkg allocations in /proc/slabinfo
- Cgroups that remain present under /sys/fs/cgroup after userspace removal attempts, with non-zero reference counts
- Elevated radix_tree_node allocation failures logged alongside block cgroup creation attempts in dmesg
Detection Strategies
- Monitor kernel memory consumption trends on hosts running container or I/O-isolation workloads and alert on sustained blkcg-related slab growth
- Correlate blkg_create() or radix_tree_insert() failure messages in kernel logs with subsequent cgroup lifecycle anomalies
- Audit kernel versions across the fleet against the stable commits listed in the upstream references to confirm patch application
Monitoring Recommendations
- Collect kernel version inventory and compare against patched stable releases on a recurring schedule
- Track per-host cgroup counts and reference-count metrics using bpftrace or cgroup accounting probes
- Forward kernel ring buffer events into a central log store and alert on allocation failures in the block cgroup path
How to Mitigate CVE-2026-93795
Immediate Actions Required
- Identify Linux hosts running kernels prior to the stable fix commits and schedule kernel updates
- Restrict unprivileged cgroup creation on multi-tenant systems until patched kernels are deployed
- Monitor memory pressure on affected hosts and reboot nodes exhibiting unbounded blkcg slab growth
Patch Information
The fix replaces blkg_put() on the error path with percpu_ref_kill(), matching the pattern already used in blkg_destroy(), and moves the blkg->online = true assignment inside the success block. Apply the upstream patches from the stable tree: commit 4c0d150f, commit 6e85f02d, and commit dbbca207. Rebuild or install vendor kernels that include these commits and reboot.
Workarounds
- Reduce memory pressure on affected hosts to lower the probability of radix_tree_insert() failures
- Avoid high-churn creation and destruction of block cgroups on unpatched systems
- Reboot affected hosts periodically to reclaim leaked blkg memory until patches are applied
# Verify running kernel version and check for fix commits
uname -r
zcat /proc/config.gz | grep -i CONFIG_BLK_CGROUP
# Inspect blkcg-related slab usage for leak indicators
grep -E 'blkcg|blkg' /proc/slabinfo
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

