# CVE-2026-98414: memcg: avoid charging the root memcg from obj\_cgroup\_charge\_pages()

> 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-14T13:27:46.003Z
- **Modified:** 2026-10-19T10:18:46.707Z

## Who should check

- Anyone running Linux \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< d5cdff14c385bf42d03c0dd4c3e88ddf4c28b8a9; \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< ecc03877b1b05cb1e3a72175ccb868383eccc518; \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< 6e673d0879ef78c395cfe0d3ba316690a60055d8
- Anyone running Linux 6.15

## Description

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

memcg: avoid charging the root memcg from obj\_cgroup\_charge\_pages()

obj\_cgroup\_charge\_pages() resolves the objcg to its memcg and calls
try\_charge\_memcg(), which does not short circuit the root memcg.  That
memcg can be the root memcg: obj\_cgroup\_is\_root() reflects the memcg the
objcg was created for and is never updated, while memcg\_reparent\_objcgs()
does redirect objcg-\>memcg to the parent on rmdir.  An objcg of a dying
child of root therefore passes every obj\_cgroup\_is\_root() filter but
resolves to the root memcg.

Folios keep the objcg they were charged with, so this is easy to reach
through zswap: allocate anon memory in a cgroup, move the task out, remove
the cgroup, then write to the root cgroup's memory.reclaim.  The reclaimed
folios are charged through the reparented objcg and end up in
refill\_stock() with the root memcg:

  WARNING: mm/memcontrol.c:2198 at refill\_stock+0x644/0x940
   refill\_stock+0x644/0x940
   try\_charge\_memcg+0x12d6/0x1570
   \_\_obj\_cgroup\_charge+0x35/0xf0
   obj\_cgroup\_charge+0x1de/0x210
   obj\_cgroup\_charge\_zswap+0x83/0x270
   zswap\_store+0x1620/0x2000
   swap\_writeout+0x94c/0x14c0
   shrink\_folio\_list+0x3388/0x52b0
   \[...\]
   try\_to\_free\_mem\_cgroup\_pages+0x30d/0x830
   user\_proactive\_reclaim+0x504/0x840
   memory\_reclaim+0x1f/0x30

Beyond the warning, the charge is asymmetric: obj\_cgroup\_uncharge\_pages()
skips refill\_stock() for the root memcg, so the root's page counter grows
and is never uncharged.  It is not user visible, since memory.current is
not exposed on the root, but it is a leak.

Use try\_charge(), which returns early for the root memcg, restoring the
symmetry with obj\_cgroup\_uncharge\_pages().

The above sequence was scripted into a standalone reproducer (zswap on,
swap on a virtio disk, 512MB of anon memory faulted in inside a child of
the root cgroup, the task then migrated to the root cgroup, the child
removed, followed by "echo 600M swappiness=max \> memory.reclaim" on the
root) and run in a CONFIG\_DEBUG\_VM=y VM.  It reproduces the splat on the
first zswap store of a reparented folio, with the same call chain as the
report.  With this patch applied the splat is gone while the zswap store
count over the run is unchanged, so the same path is still exercised. 
cgroup selftests test\_zswap, test\_kmem and test\_memcontrol show no new
failures.

## Affected and fixed versions

- Linux: \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< d5cdff14c385bf42d03c0dd4c3e88ddf4c28b8a9; \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< ecc03877b1b05cb1e3a72175ccb868383eccc518; \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< 6e673d0879ef78c395cfe0d3ba316690a60055d8 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 6e673d0879ef78c395cfe0d3ba316690a60055d8 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-98414. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98414.md
Affected: Linux >= 20d6c17252282c3af261d1cde8e34def1b2458c8, < d5cdff14c385bf42d03c0dd4c3e88ddf4c28b8a9; >= 20d6c17252282c3af261d1cde8e34def1b2458c8, < ecc03877b1b05cb1e3a72175ccb868383eccc518; >= 20d6c17252282c3af261d1cde8e34def1b2458c8, < 6e673d0879ef78c395cfe0d3ba316690a60055d8; Linux 6.15
Fixed in: Linux 6e673d0879ef78c395cfe0d3ba316690a60055d8

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< d5cdff14c385bf42d03c0dd4c3e88ddf4c28b8a9; \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< ecc03877b1b05cb1e3a72175ccb868383eccc518; \>= 20d6c17252282c3af261d1cde8e34def1b2458c8, \< 6e673d0879ef78c395cfe0d3ba316690a60055d8; Linux 6.15.

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

Yes. Fixed in Linux 6e673d0879ef78c395cfe0d3ba316690a60055d8. Upgrade Linux to 6e673d0879ef78c395cfe0d3ba316690a60055d8 or later.

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

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/d5cdff14c385bf42d03c0dd4c3e88ddf4c28b8a9>
- other: <https://git.kernel.org/stable/c/ecc03877b1b05cb1e3a72175ccb868383eccc518>
- other: <https://git.kernel.org/stable/c/6e673d0879ef78c395cfe0d3ba316690a60055d8>

## 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-98414>

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