# CVE-2026-64418: mm: shrinker: fix shrinker\_info teardown race with expansion

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

- **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.13% (percentile 1, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-07-25T08:50:57.594Z
- **Modified:** 2026-09-04T15:24:49.577Z

## Who should check

- Anyone running Linux \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< b9a280a9a454ed514636351d53fe2a233dc5054b; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 6465ff3ce65131c774a312d450abe10f4b9f3875; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 284c267f013e45d8c89d9fb9373105dc8e6c0947; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 65476d31d8056e859c48580f82295ce159196ffe
- Anyone running Linux 6.7

## Description

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

mm: shrinker: fix shrinker\_info teardown race with expansion

expand\_shrinker\_info() iterates all visible memcgs under shrinker\_mutex,
including memcgs that have not finished -\>css\_online() yet.

Once pn-\>shrinker\_info has been published, teardown must stay serialized
with expand\_shrinker\_info() until that memcg is either fully online or no
longer visible to iteration.  Today alloc\_shrinker\_info() breaks that rule
by dropping shrinker\_mutex before freeing a partially initialized
shrinker\_info array, which may cause the following race:

CPU0                   CPU1
====                   ====

css\_create
--\> list\_add\_tail\_rcu(&css-\>sibling, &parent\_css-\>children);
    online\_css
    --\> mem\_cgroup\_css\_online
        --\> alloc\_shrinker\_info
            --\> alloc node0 info
                rcu\_assign\_pointer(C-\>node0-\>shrinker\_info, old0)
                alloc node1 info -\> FAIL -\> goto err
                mutex\_unlock(shrinker\_mutex)

                       shrinker\_alloc()
                       --\> shrinker\_memcg\_alloc
                           --\> mutex\_lock(shrinker\_mutex)
                               expand\_shrinker\_info
                               --\> mem\_cgroup\_iter see the memcg
                                   expand\_one\_shrinker\_info
                                   --\> old0 = C-\>node0-\>shrinker\_info
                                       memcpy(new-\>unit, old0-\>unit, ...);

                free\_shrinker\_info
                --\> kvfree(old0);

                                       /\* double free !! \*/
                                       kvfree\_rcu(old0, rcu);

The same problem exists later in mem\_cgroup\_css\_online().  If
alloc\_shrinker\_info() succeeds but a subsequent objcg allocation fails,
the free\_objcg -\> free\_shrinker\_info() unwind path tears down the already
published pn-\>shrinker\_info arrays without shrinker\_mutex.  The
expand\_one\_shrinker\_info() can race with that teardown in the same way,
leading to use-after-free or double-free of the old shrinker\_info.

Fix this by serializing shrinker\_info teardown with shrinker\_mutex, and by
keeping alloc\_shrinker\_info() error cleanup inside the locked section.

## Affected and fixed versions

- Linux: \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< b9a280a9a454ed514636351d53fe2a233dc5054b; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 6465ff3ce65131c774a312d450abe10f4b9f3875; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 284c267f013e45d8c89d9fb9373105dc8e6c0947; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 65476d31d8056e859c48580f82295ce159196ffe (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-64418.md
Affected: Linux >= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, < b9a280a9a454ed514636351d53fe2a233dc5054b; >= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, < 6465ff3ce65131c774a312d450abe10f4b9f3875; >= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, < 284c267f013e45d8c89d9fb9373105dc8e6c0947; >= 307bececcd1205bcb67a3c0…
Fixed in: Linux 6465ff3ce65131c774a312d450abe10f4b9f3875, Linux 284c267f013e45d8c89d9fb9373105dc8e6c0947, Linux 65476d31d8056e859c48580f82295ce159196ffe

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

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

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

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

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

Linux \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< b9a280a9a454ed514636351d53fe2a233dc5054b; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 6465ff3ce65131c774a312d450abe10f4b9f3875; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 284c267f013e45d8c89d9fb9373105dc8e6c0947; \>= 307bececcd1205bcb67a3c0d53a69db237ccc9d4, \< 65476d31d8056e859c48580f82295ce159196ffe; Linux 6.7.

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

Yes. Fixed in Linux 6465ff3ce65131c774a312d450abe10f4b9f3875, Linux 284c267f013e45d8c89d9fb9373105dc8e6c0947, Linux 65476d31d8056e859c48580f82295ce159196ffe. Upgrade Linux to 65476d31d8056e859c48580f82295ce159196ffe or later.

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

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

- patch: <https://git.kernel.org/stable/c/b9a280a9a454ed514636351d53fe2a233dc5054b>
- patch: <https://git.kernel.org/stable/c/6465ff3ce65131c774a312d450abe10f4b9f3875>
- patch: <https://git.kernel.org/stable/c/284c267f013e45d8c89d9fb9373105dc8e6c0947>
- patch: <https://git.kernel.org/stable/c/65476d31d8056e859c48580f82295ce159196ffe>

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

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