CVE-2026-93240: memcg: make the v1 soft limit knob inert
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
memcg: make the v1 soft limit knob inert
The v1 soft limit has been deprecated since v6.12 and nobody has reported depending on it. Start the removal by decoupling the interface from the
implementation: keep memory.soft_limit_in_bytes, but ignore writes to it and always report the maximum value on read similar to what memory.kmem.limit_in_bytes already does.
Writes are still parsed, so malformed input keeps returning -EINVAL. The knob now also behaves the same everywhere: it used to return -EOPNOTSUPP on PREEMPT_RT, where soft limit reclaim has always been disabled.
This also fixes the syzbot report linked below. Soft limit reclaim is the only caller that runs shrink_lruvec() from kswapd against a specific memcg, so it is the only way to reach lru_gen_shrink_lruvec() and in turn set_mm_walk(), which warns when called from kswapd.
The Linux kernel CVE team has assigned CVE-2026-93240 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.110 with commit 72fb67f6e0e5d78e4f34cf9929d1afdb0fd54203 Fixed in 6.18.51 with commit 0a90e268cce7023f34087bfa4affb42e29ff5f45 Fixed in 7.2.5 with commit 5ec8f629a300cc40e746d6178f724bdff7683fa7 Fixed in 7.3-rc2 with commit a3417097fb107cea3358b19bcbb4eb655fd67f8c
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93240
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
Documentation/admin-guide/cgroup-v1/memory.rst mm/memcontrol-v1.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/72fb67f6e0e5d78e4f34cf9929d1afdb0fd54203 https://git.kernel.org/stable/c/0a90e268cce7023f34087bfa4affb42e29ff5f45 https://git.kernel.org/stable/c/5ec8f629a300cc40e746d6178f724bdff7683fa7 https://git.kernel.org/stable/c/a3417097fb107cea3358b19bcbb4eb655fd67f8c