CVE-2026-142845

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

mm/list_lru: don't copy stale shrinker id from non-memcg-aware shrinkers

With cgroup.memory=nokmem, shrinker_memcg_alloc() fails with -ENOSYS for shrinkers without SHRINKER_NONSLAB, and shrinker_alloc() falls back to a non-memcg-aware shrinker. On this fallback path, shrinker->id is never assigned and keeps 0 from kzalloc(), which is a valid id belonging to whichever memcg-aware shrinker registers first.

__list_lru_init() copies shrinker->id unconditionally, so every list_lru backed by such a fallback shrinker (thp-deferred_split, zswap-shrinker, workingset shadow nodes, superblock lrus, ...) ends up with lru->shrinker_id == 0 instead of -1.

Under nokmem the list_lru collapses to the shared per-node lists, but __list_lru_add() still calls set_shrinker_bit() against the memcg of the added object. Most list_lru users are unaffected because their objects resolve to a NULL memcg without kmem accounting, but the THP deferred split queue holds user folios, which are charged regardless of nokmem. On a system where no SHRINKER_NONSLAB shrinker registers, shrinker_nr_max stays 0 and every memcg's shrinker_info has map_nr_max == 0, so the first folio added by khugepaged triggers on every boot:

WARNING: mm/shrinker.c:212 at set_shrinker_bit+0x99/0xa0

On systems where a SHRINKER_NONSLAB shrinker (btrfs, xfs) did register and expand the maps, there is no warning; instead bit 0 is set spuriously for an unrelated shrinker.

shrinker->id is only meaningful while SHRINKER_MEMCG_AWARE is set, and all readers inside mm/shrinker.c already check the flag before using the id. Make __list_lru_init() do the same and fall back to -1, so set_shrinker_bit() is never reached with a bogus id. The stale shrinker->id itself is left as is; cleaning that up is a separate topic.

Verified on a machine booting with cgroup.memory=nokmem and CONFIG_TRANSPARENT_HUGEPAGE=y: the warning fires once per boot from khugepaged, disappears when nokmem is removed from the command line, and no longer triggers with this fix applied and nokmem set.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 83584cc1f14d9102b612529fd26182f050f2cfad; >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 6a100811c7c5fa39d452ff2e380bd14efbc0208e
LinuxLinux7.2

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142846In the Linux kernel, the following vulnerability has been resolved: mm/page_table_check: skip zero pages page_table_check_set() accounts pCVE-2026-142847In the Linux kernel, the following vulnerability has been resolved: mm/page_isolation: fix UBSAN shift-out-of-bounds warning Patch series CVE-2026-142848In the Linux kernel, the following vulnerability has been resolved: floppy: don't store a stack buffer in timeout_message request_done() fCVE-2026-142849In the Linux kernel, the following vulnerability has been resolved: xfarray: don't crash when sorting if array element crosses a folio LOLCVE-2026-142850In the Linux kernel, the following vulnerability has been resolved: crypto: nx - validate 'ignore' before subtracting in decompress The deCVE-2026-142851In the Linux kernel, the following vulnerability has been resolved: media: em28xx: fix inverted tuner capability check for VBI device CommCVE-2026-142852In the Linux kernel, the following vulnerability has been resolved: media: mali-c55: Check the statistics buffer address before filling maCVE-2026-142853In the Linux kernel, the following vulnerability has been resolved: clk: tenstorrent: Assign .num before accessing .hws Commit f316cdff8d6CVE-2026-142854In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: reject an oversized resident attribute on the inline iomap paCVE-2026-142855In the Linux kernel, the following vulnerability has been resolved: ASoC: sdw_utils: clear stale RT711 device reference on exit asoc_sdw_rCVE-2026-142856In the Linux kernel, the following vulnerability has been resolved: media: meson-ir-tx: Prevent divide by zero in meson_irtx_prepare_pulse(CVE-2026-142857In the Linux kernel, the following vulnerability has been resolved: leds: ktd2692: Pass context to regulator cleanup regulator_disable_act
CVE-2026-142845: Unscored | Vulnix