CVE-2026-64418
mm: shrinker: fix shrinker_info teardown race with expansion
Reported by linux · Published July 25, 2026
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.
EPSS 0.10% · 0.7th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-rt | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-64k-debug-debuginfo | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-modules-extra-matched | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-rt-debug-modules | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-livepatch-6.12.100-125.179 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-devel | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| python3-perf6.12 | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| kernel-rt-devel | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-debug-debuginfo | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel-rt-64k-debug-core | errata.rockylinux.org | 6.12.0-211.50.1.el10 |
| kernel6.12-tools | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 307bececcd1205bcb67a3c0d53a69db237ccc9d4, 307bececcd1205bcb67a3c0d53a69db237ccc9d4, 307bececcd1205bcb67a3c0d53a69db237ccc9d4 |
| Linux | Linux | 6.7, 0, 6.12.96 |
| amazon:2023 | kernel-livepatch-6.12.100-125.179 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | perf6.18 | 0 |
| linux | linux_kernel | 6.7, 6.7, 6.7 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Linux | Linux | 7.2, 307bececcd1205bcb67a3c0d53a69db237ccc9d4, 307bececcd1205bcb67a3c0d53a69db237ccc9d4 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.39-79.141 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
…and 7 more
Timeline
- Jul 25, 2026 EPSS Score (7 in total, the first dated here)
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (21 in total, the first dated here)
- Aug 9, 2026 CVE Updated
- Aug 12, 2026 Distribution Patch (23 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64418
vulnetix vdb fixes CVE-2026-64418
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64418/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart