VDB

CVE-2026-64418

CVE-2026-64418 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel-rterrata.rockylinux.org6.12.0-211.50.1.el10
kernel-64k-debug-debuginfoerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-modules-extra-matchederrata.rockylinux.org6.12.0-211.50.1.el10
kernel-rt-debug-moduleserrata.rockylinux.org6.12.0-211.50.1.el10
kernel-livepatch-6.12.100-125.179Amazon Linux1:1.0-0.amzn2023
kernel-develerrata.rockylinux.org6.12.0-211.50.1.el10
python3-perf6.12Amazon Linux1:6.12.100-125.179.amzn2023
kernel-rt-develerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-debug-debuginfoerrata.rockylinux.org6.12.0-211.50.1.el10
kernel-rt-64k-debug-coreerrata.rockylinux.org6.12.0-211.50.1.el10
kernel6.12-toolsAmazon Linux1:6.12.100-125.179.amzn2023
perf6.18Amazon Linux1:6.18.39-79.141.amzn2023

2 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.10%
0.7th percentile

Affected products

VendorProductVersions
LinuxLinux307bececcd1205bcb67a3c0d53a69db237ccc9d4, 307bececcd1205bcb67a3c0d53a69db237ccc9d4, 307bececcd1205bcb67a3c0d53a69db237ccc9d4
LinuxLinux6.7, 0, 6.12.96
amazon:2023kernel-livepatch-6.12.100-125.1790
amazon:2023python3-perf6.120
amazon:2023kernel6.12-tools0
amazon:2023perf6.180
linuxlinux_kernel6.7, 6.7, 6.7
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.12-tools-devel0
amazon:2023microvm-kernel6.180
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-modules-extra0
LinuxLinux7.2, 307bececcd1205bcb67a3c0d53a69db237ccc9d4, 307bececcd1205bcb67a3c0d53a69db237ccc9d4
amazon:2023kernel6.12-devel0
amazon:2023kernel-livepatch-6.18.39-79.1410
amazon:2023kernel6.120
amazon:2023kernel6.180
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-headers0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›