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-93240 Overview
CVE-2026-93240 affects the Linux kernel memory control group (memcg) subsystem. The vulnerability relates to the deprecated v1 soft limit interface (memory.soft_limit_in_bytes), which has been deprecated since kernel v6.12. Soft limit reclaim is the only caller that invokes shrink_lruvec() from kswapd against a specific memcg, triggering a path that reaches lru_gen_shrink_lruvec() and set_mm_walk(). The latter function warns when called from kswapd. A syzbot report surfaced this condition. The fix decouples the knob from its implementation: writes to memory.soft_limit_in_bytes are ignored, and reads always return the maximum value.
Critical Impact
The issue produces kernel warnings from the kswapd path when the deprecated memcg v1 soft limit is used, with potential for log noise and secondary stability concerns in reclaim behavior.
Affected Products
- Linux kernel versions prior to the fix (deprecated v1 soft limit path since v6.12)
- Systems configured with cgroup v1 memory controller using memory.soft_limit_in_bytes
- Kernels where lru_gen_shrink_lruvec() is reachable from kswapd via memcg soft limit reclaim
Discovery Timeline
- 2026-09-24 - CVE-2026-93240 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93240
Vulnerability Analysis
The Linux kernel memory cgroup (memcg) v1 interface exposes memory.soft_limit_in_bytes, which has been deprecated since kernel v6.12. Soft limit reclaim remains the single caller that runs shrink_lruvec() from kswapd against a specific memcg. That code path reaches lru_gen_shrink_lruvec(), which in turn calls set_mm_walk(). The set_mm_walk() function emits a warning when invoked from kswapd, producing the condition reported by syzbot.
The fix retains the user-facing knob for compatibility but makes it inert. Writes are parsed to preserve -EINVAL behavior on malformed input, but valid writes are discarded. Reads always return the maximum value, mirroring the long-established behavior of memory.kmem.limit_in_bytes. The change also unifies behavior across kernel configurations, since the knob previously returned -EOPNOTSUPP on PREEMPT_RT where soft limit reclaim was already disabled.
Root Cause
The root cause is an incompatibility between the deprecated memcg v1 soft limit reclaim path and the multi-generational LRU (MGLRU) walk accounting introduced in lru_gen_shrink_lruvec(). Invoking set_mm_walk() from kswapd violates the function's expected calling context and triggers its WARN guard.
Attack Vector
This is a kernel self-consistency defect reported via syzbot fuzzing. It does not describe a traditional remote or local privilege-escalation primitive. Triggering the warning requires an environment that still uses the deprecated cgroup v1 memory controller with a configured soft limit, under memory pressure sufficient to drive kswapd to run soft limit reclaim.
No verified exploit code is available. See the upstream patches for implementation detail: Kernel Patch 0a90e268, Kernel Patch 5ec8f629, Kernel Patch 72fb67f6, and Kernel Patch a3417097.
Detection Methods for CVE-2026-93240
Indicators of Compromise
- Kernel log warnings originating from set_mm_walk() when invoked from kswapd context
- Presence of non-default values written to memory.soft_limit_in_bytes under cgroup v1 memory controllers
- Repeated reclaim stack traces referencing lru_gen_shrink_lruvec() and shrink_lruvec()
Detection Strategies
- Inspect /sys/fs/cgroup/memory/*/memory.soft_limit_in_bytes across managed hosts to identify systems still relying on the deprecated knob
- Collect kernel ring buffer output via dmesg and search for WARN traces tied to memcg reclaim
- Correlate kernel version with the patched commits using package inventory to prioritize updates
Monitoring Recommendations
- Forward kernel logs to a centralized logging platform and alert on WARNING: CPU: traces that reference reclaim functions
- Track cgroup version usage across the fleet; prioritize cgroup v2 migration for hosts still on v1
- Monitor for kernel package updates on long-lived Linux hosts to confirm the fix is deployed
How to Mitigate CVE-2026-93240
Immediate Actions Required
- Apply the upstream Linux kernel fix that renders the v1 soft limit knob inert
- Audit workloads for continued dependency on memory.soft_limit_in_bytes and plan migration to cgroup v2 memory.high and memory.max
- Validate that custom orchestration or container runtimes do not fail when writes to the deprecated knob are ignored
Patch Information
Upstream fixes are available in the following stable kernel commits: 0a90e268, 5ec8f629, 72fb67f6, and a3417097. Consume the fix through your distribution's kernel update channel.
Workarounds
- Stop writing values to memory.soft_limit_in_bytes; leave the knob at its default to avoid triggering soft limit reclaim
- Migrate memory accounting policies from cgroup v1 to cgroup v2, which does not expose the deprecated soft limit interface
- On systems where migration is not immediate, consider booting with PREEMPT_RT configurations where soft limit reclaim is already disabled
# Configuration example: identify hosts using the deprecated memcg v1 soft limit
find /sys/fs/cgroup/memory -name 'memory.soft_limit_in_bytes' \
-exec sh -c 'val=$(cat "$1"); [ "$val" != "9223372036854775807" ] && echo "$1=$val"' _ {} \;
# Check kernel ring buffer for related warnings
dmesg | grep -E 'set_mm_walk|lru_gen_shrink_lruvec|shrink_lruvec'
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

