# CVE-2026-99697: mm: memcontrol: fix NULL pointer deref and UAF from high\_work\_func() on dying memcg

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **Published:** 2026-11-20T05:50:40.353Z
- **Modified:** 2026-11-23T08:18:10.897Z

## Who should check

- Anyone running Linux \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< a44855f25821082e384503abf01a45a5c65a80de; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< 301ac490daf619b8affe12b07e2d68c99adcda79; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< b558ac673e65b4f302f105a0d9f79fb7cf012330; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< dd94d8c7660a60dbfcd425e0d10120de6d02a7bd
- Anyone running Linux 6.3

## Description

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

mm: memcontrol: fix NULL pointer deref and UAF from high\_work\_func() on dying memcg

When memory.high is exceeded in non-task context, try\_charge\_memcg()
schedules memcg-\>high\_work without taking a reference on the memcg, and
high\_work\_func() invokes reclaim\_high() without pinning the memcg.

With obj\_cgroup reparenting, introduced in commit bf4f059954dc ("mm:
memcg/slab: obj\_cgroup API"), objects charged to a child memcg are
reparented to its parent in mem\_cgroup\_css\_offline() instead of holding a
reference on the child until uncharged.  Subsequent uncharges of those
objects go to the parent, which can leave the child's memory use
permanently above its high limit, so any later charge on the offlined
memcg in non-task context schedules high\_work.  This was later widened
from kernel memory to LRU folios when commit f1cf8d2f36dc ("mm:
memcontrol: eliminate the problem of dying memory cgroup for LRU folios")
converted LRU folios to use obj\_cgroup reparenting.

cancel\_work\_sync(&memcg-\>high\_work) only runs at the end of teardown in
mem\_cgroup\_css\_free(), so high\_work\_func() can start or still be running
reclaim\_high() after mem\_cgroup\_css\_released() or shrink\_many() has called
lru\_gen\_release\_memcg() and unhashed lruvec-\>lrugen.list.  If reclaim
tries to rotate the memcg, lru\_gen\_rotate\_memcg() dereferences a NULL
pprev pointer.  This issue is specific to MGLRU and was introduced with
the memcg LRU in commit e4dde56cd208 ("mm: multi-gen LRU: per-node
lru\_gen\_folio lists").

With either traditional LRU or MGLRU, css\_free\_rwork\_fn() calls
css\_rstat\_exit() which frees per-CPU rstat data before calling
mem\_cgroup\_css\_free().  If reclaim\_high() is still running, rstat updates
via mod\_lruvec\_state() -\> \_\_css\_rstat\_updated() cause a use-after-free on
the per-CPU rstat data.  This was introduced when commit 5da3bfa029d6
("cgroup: use separate rstat trees for each subsystem") moved
css\_rstat\_exit() ahead of ss-\>css\_free().

Fix both problems by acquiring a reference with css\_tryget\_online() in
high\_work\_func() before calling reclaim\_high(), and by resetting
memory.high and swap.high to PAGE\_COUNTER\_MAX in mem\_cgroup\_css\_offline()
so that charges via references on an offlined memcg do not trigger
high\_work on the dead child and skip checking live ancestors in
try\_charge\_memcg().

Acquiring the reference in high\_work\_func() rather than before scheduling
high\_work is safe because mem\_cgroup\_css\_free() calls irq\_work\_sync() and
cancel\_work\_sync() which cancels pending work and waits for an already
running high\_work\_func() to complete before mem\_cgroup\_free() frees the
memcg.  css\_tryget\_online() uses percpu\_ref\_tryget\_live() and is safe to
call after percpu\_ref\_exit() before the cgroup is freed unlike
css\_tryget().

Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 \[\#1\] SMP KASAN NOPTI
KASAN: null-ptr-deref in range \[0x0000000000000000-0x0000000000000007\]
CPU: 1 UID: 0 PID: 27 Comm: kworker/1:0 Tainted: G    B   W           7.3.0-rc5-g2bba28e98578 \#284 PREEMPT(full)
Tainted: \[B\]=BAD\_PAGE, \[W\]=WARN  \<-- Taint from lru\_gen\_rotate\_memcg() VM\_WARN\_ON\_ONCE
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014
Workqueue: events high\_work\_func
RIP: 0010:lru\_gen\_rotate\_memcg+0x1a3/0xe90
Call Trace:
 \<TASK\>
 ? read\_ctrl\_pos+0x22f/0x3f0
 shrink\_lruvec+0x16cb/0x1b80
 ? ret\_from\_fork\_asm+0x1a/0x30
 ? lapic\_next\_event+0x15/0x20
 ? clockevents\_program\_event+0x2bb/0x6f0
 ? lapic\_next\_event+0x15/0x20
 ? \_\_pfx\_shrink\_lruvec+0x10/0x10
 ? \_\_pfx\_clockevents\_program\_event+0x10/0x10
 ? \_raw\_spin\_lock+0x84/0xe0
 ? \_\_pfx\_\_raw\_spin\_lock+0x10/0x10
 ? kasan\_save\_stack+0x30/0x50
 ? psi\_group\_change+0x381/0x740
 ? \_\_pfx\_sched\_clock\_cpu+0x10/0x10
 ? save\_fpregs\_to\_fpstate+0xc4/0x2c0
 ? finish\_task\_switch.isra.0+0x1de/0xac0
 ? \_\_schedule+0xf62/0x42c0
 ? \_\_pfx\_\_\_schedule+0x10/0x10
 ? \_\_pfx\_\_\_irq\_work\_queue\_lo
---truncated---

## Affected and fixed versions

- Linux: \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< a44855f25821082e384503abf01a45a5c65a80de; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< 301ac490daf619b8affe12b07e2d68c99adcda79; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< b558ac673e65b4f302f105a0d9f79fb7cf012330; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< dd94d8c7660a60dbfcd425e0d10120de6d02a7bd (cvelist)
- Linux: 6.3 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99697.md
Affected: Linux >= e4dde56cd208674ce899b47589f263499e5b8cdc, < 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7; >= e4dde56cd208674ce899b47589f263499e5b8cdc, < a44855f25821082e384503abf01a45a5c65a80de; >= e4dde56cd208674ce899b47589f263499e5b8cdc, < 301ac490daf619b8affe12b07e2d68c99adcda79; >= e4dde56cd208674ce899b47…
Fixed in: Linux 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7, Linux 301ac490daf619b8affe12b07e2d68c99adcda79

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-99697 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< a44855f25821082e384503abf01a45a5c65a80de; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< 301ac490daf619b8affe12b07e2d68c99adcda79; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< b558ac673e65b4f302f105a0d9f79fb7cf012330; \>= e4dde56cd208674ce899b47589f263499e5b8cdc, \< dd94d8c7660a60dbfcd425e0d10120de6d02a7bd; Linux 6.3.

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

Yes. Fixed in Linux 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7, Linux 301ac490daf619b8affe12b07e2d68c99adcda79. No fix listed yet: follow the vendor advisory.

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

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/16062b71048d8ef85ca6a99d5ef26f0143d0e0c7>
- other: <https://git.kernel.org/stable/c/a44855f25821082e384503abf01a45a5c65a80de>
- other: <https://git.kernel.org/stable/c/301ac490daf619b8affe12b07e2d68c99adcda79>
- other: <https://git.kernel.org/stable/c/b558ac673e65b4f302f105a0d9f79fb7cf012330>
- other: <https://git.kernel.org/stable/c/dd94d8c7660a60dbfcd425e0d10120de6d02a7bd>

## 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-99697>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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