# CVE-2026-98225: mm/shrinker: fix bogus set\_shrinker\_bit() with cgroup.memory=nokmem

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-06T08:45:00.458Z
- **Modified:** 2026-10-19T10:18:23.243Z

## Who should check

- Anyone running Linux \>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, \< 469c12a69ab1842a9090b6c074ffedbfd9584f9c; \>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, \< 932cfb25e7ce98d1f93895671ec186a3087e4f80
- Anyone running Linux 7.2

## Description

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

mm/shrinker: fix bogus set\_shrinker\_bit() with cgroup.memory=nokmem

With cgroup.memory=nokmem, shrinker\_memcg\_alloc() bails out early and
never allocates an id, so shrinker-\>id keeps the 0 it got from the
kzalloc() in shrinker\_alloc().  \_\_list\_lru\_init() then copies that 0 into
lru-\>shrinker\_id, where it looks like a valid bit index.

Nothing calls expand\_shrinker\_info() on nokmem either, so shrinker\_nr\_max
stays 0 and every memcg ends up with an empty map (map\_nr\_max == 0).

deferred\_split\_folio() hands a real memcg to \_\_list\_lru\_add() regardless
of whether the lru is memcg aware, so the first THP queued in a cgroup
does set\_shrinker\_bit(memcg, nid, 0) and trips the bounds check:

WARNING: mm/shrinker.c:212 at set\_shrinker\_bit+0x7d/0x90, CPU\#126
Call Trace:
 \<TASK\>
 deferred\_split\_folio+0x18c/0x220
 map\_anon\_folio\_pmd\_nopf+0xdd/0x130
 map\_anon\_folio\_pmd\_pf+0x14/0xb0
 do\_huge\_pmd\_anonymous\_page+0x1a1/0x620
 \_\_handle\_mm\_fault+0xea9/0x10d0
 handle\_mm\_fault+0xe5/0x320
 do\_user\_addr\_fault+0x1cc/0x870
 exc\_page\_fault+0x81/0x1b0
 asm\_exc\_page\_fault+0x27/0x30
 \</TASK\>

Harmless, the WARN\_ON\_ONCE() is what keeps the out of bounds unit\[\] read
from happening, but the id should not look valid in the first place. 
Clear it before returning.

Two other spots could paper over this: drop the id in \_\_list\_lru\_init()
when nokmem turns memcg\_aware off, or make deferred\_split\_folio() pass
NULL like list\_lru\_add\_obj() does.  Both leave shrinker-\>id lying around
for the next caller, so fix it where the id is handed out.

## Affected and fixed versions

- Linux: \>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, \< 469c12a69ab1842a9090b6c074ffedbfd9584f9c; \>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, \< 932cfb25e7ce98d1f93895671ec186a3087e4f80 (cvelist)
- Linux: 7.2 (cvelist)

## Mitigation

- Upgrade Linux to 932cfb25e7ce98d1f93895671ec186a3087e4f80 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98225.md
Affected: Linux >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 469c12a69ab1842a9090b6c074ffedbfd9584f9c; >= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, < 932cfb25e7ce98d1f93895671ec186a3087e4f80; Linux 7.2
Fixed in: Linux 469c12a69ab1842a9090b6c074ffedbfd9584f9c, Linux 932cfb25e7ce98d1f93895671ec186a3087e4f80

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.
```

## FAQ

### Is CVE-2026-98225 being exploited?

There is no confirmed exploitation: CVE-2026-98225 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98225?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98225?

Linux \>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, \< 469c12a69ab1842a9090b6c074ffedbfd9584f9c; \>= fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67, \< 932cfb25e7ce98d1f93895671ec186a3087e4f80; Linux 7.2.

### Is there a fix for CVE-2026-98225?

Yes. Fixed in Linux 469c12a69ab1842a9090b6c074ffedbfd9584f9c, Linux 932cfb25e7ce98d1f93895671ec186a3087e4f80. Upgrade Linux to 932cfb25e7ce98d1f93895671ec186a3087e4f80 or later.

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

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.

## References

- other: <https://git.kernel.org/stable/c/469c12a69ab1842a9090b6c074ffedbfd9584f9c>
- other: <https://git.kernel.org/stable/c/932cfb25e7ce98d1f93895671ec186a3087e4f80>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98225>

HTML: <https://flawdb.com/CVE-2026-98225> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98225>
