CVE-2026-64419

mm/shrinker: do not hold RCU lock in shrinker_debugfs_count_show()

No CVSS score yet EPSS 0.16%

Published 25 Jul 2026 Updated 17 Aug 2026 CNA: Linux

Check your servers for CVE-2026-64419

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-64419 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

mm/shrinker: do not hold RCU lock in shrinker_debugfs_count_show()

Reading the debugfs "count" file of a memcg-aware shrinker can sleep inside an RCU read-side critical section:

BUG: sleeping function called from invalid context at kernel/cgroup/rstat.c:421 RCU nest depth: 1, expected: 0 css_rstat_flush mem_cgroup_flush_stats zswap_shrinker_count shrinker_debugfs_count_show

shrinker_debugfs_count_show() invokes the ->count_objects() callback under rcu_read_lock(). The zswap callback flushes memcg stats via css_rstat_flush(), which may sleep, so it must not run under RCU.

The RCU lock is not needed here. mem_cgroup_iter() takes RCU internally and returns a memcg holding a css reference (dropped on the next iteration or by mem_cgroup_iter_break()), so the memcg stays alive without it. The shrinker is kept alive by the open debugfs file: shrinker_free() removes the debugfs entries via debugfs_remove_recursive(), which waits for in-flight readers to drain, before call_rcu(..., shrinker_free_rcu_cb). The sibling "scan" handler already invokes the sleeping ->scan_objects() callback with no RCU section.

Drop the rcu_read_lock()/rcu_read_unlock().

Exploitation

EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.97% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 5035ebc644aec92d55d1bbfe042f35341e4bffb5, before de5f69b8dae8698ac5e48dfcd30017887cdf4e5a
affected from 5035ebc644aec92d55d1bbfe042f35341e4bffb5, before e441cbfbd0eaa6404278e985033c33caba4db767
affected from 5035ebc644aec92d55d1bbfe042f35341e4bffb5, before 2fed79f0fe8c8d28a972c290dbfd693c3546c8c4
affected from 5035ebc644aec92d55d1bbfe042f35341e4bffb5, before 560e21e8ccff813e84d05f6500907c549a3d6985
affected from 5035ebc644aec92d55d1bbfe042f35341e4bffb5, before 86237e56091e70f09c0fbf217f9d9c0e08f556c4
affected from 5035ebc644aec92d55d1bbfe042f35341e4bffb5, before b902890c62d200b3509cb5e09cf1e0a66553c128
Other versions: unaffected
Linux
affected 6.0
unaffected before 6.0
unaffected from 6.1.178 up to and including 6.1.*
unaffected from 6.6.145 up to and including 6.6.*
unaffected from 6.12.96 up to and including 6.12.*
unaffected from 6.18.39 up to and including 6.18.*
unaffected from 7.1.4 up to and including 7.1.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-64419 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-64419

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-64419
trivy image --scanners vuln IMAGE | grep CVE-2026-64419

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-64419 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.