Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Linux

CVE-2026-142845 — Linux

Not yet scoredEPSS 0.3% First seen December 03, 2026

One of 624 Linux vulnerabilities published together by NVD: our article covers all of them.

LinuxOperating systemsVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Affected and fixed versions

ProductAffected versionsFixed in
Linux7.2 and later7.3.4, 7.4-rc1

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Details from NVD (public domain).

Affected

  • Linux

What to do

  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-142845?

In the Linux kernel, the following vulnerability has been resolved: mm/listlru: don't copy stale shrinker id from non-memcg-aware shrinkers With cgroup.memory=nokmem, shrinkermemcgalloc() fails with -ENOSYS for shrinkers without SHRINKERNONSLAB, and shrinkeralloc() falls back to a non-memcg-aware shrinker.

How severe is CVE-2026-142845?

CVE-2026-142845 has not been given a CVSS score yet.

Is CVE-2026-142845 being exploited?

Not as far as is known: CVE-2026-142845 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-142845?

Linux 7.2 and later (fixed in 7.3.4, 7.4-rc1).

How do I fix CVE-2026-142845?

Update to a fixed release: Linux 7.3.4, 7.4-rc1.

Timeline & sources

References

Related vulnerabilities & news