Skip to content
FlawDB
Sign in

CVE-2026-142845

UNSCORED

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

Mitigation

  • Upgrade Linux to 6a100811c7c5fa39d452ff2e380bd14efbc0208e or later.

Who should check

  • Anyone running Linux >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 83584cc1f14d9102b612529fd26182f050f2cfad; >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 6a100811c7c5fa39d452ff2e380bd14efbc0208e
  • Anyone running Linux 7.2

Vulnerability facts

Affected
Linux >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 83584cc1f14d9102b612529fd26182f050f2cfad; >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 6a100811c7c5fa39d452ff2e380bd14efbc0208e; Linux 7.2
Fixed in
Linux 83584cc1f14d9102b612529fd26182f050f2cfad, Linux 6a100811c7c5fa39d452ff2e380bd14efbc0208e
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 83584cc1f14d9102b612529fd26182f050f2cfad; >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 6a100811c7c5fa39d452ff2e380bd14efbc0208e—cvelist
Linux7.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-142845. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142845.md
Affected: Linux >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 83584cc1f14d9102b612529fd26182f050f2cfad; >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 6a100811c7c5fa39d452ff2e380bd14efbc0208e; Linux 7.2
Fixed in: Linux 83584cc1f14d9102b612529fd26182f050f2cfad, Linux 6a100811c7c5fa39d452ff2e380bd14efbc0208e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-142845 being exploited?

There is no confirmed exploitation: CVE-2026-142845 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-142845?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-142845?

Linux >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 83584cc1f14d9102b612529fd26182f050f2cfad; >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 6a100811c7c5fa39d452ff2e380bd14efbc0208e; Linux 7.2.

Is there a fix for CVE-2026-142845?

Yes. Fixed in Linux 83584cc1f14d9102b612529fd26182f050f2cfad, Linux 6a100811c7c5fa39d452ff2e380bd14efbc0208e. Upgrade Linux to 6a100811c7c5fa39d452ff2e380bd14efbc0208e or later.

How do I check if I'm affected by CVE-2026-142845?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
UNSCOREDCVE-2026-142948

i2c: designware: queue only one read command for block reads

Linux kernel
UNSCOREDCVE-2026-142947

cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails

Linux kernel
UNSCOREDCVE-2026-142946

ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142945

ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142944

ASoC: amd: acp-es8336: Use an owned codec device reference

Linux kernel
Sponsors