CVE-2026-64419

Source
https://cve.org/CVERecord?id=CVE-2026-64419
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64419.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64419
Downstream
Published
2026-07-25T08:50:58.342Z
Modified
2026-07-26T05:17:19.564307452Z
Summary
mm/shrinker: do not hold RCU lock in shrinker_debugfs_count_show()
Details

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

mm/shrinker: do not hold RCU lock in shrinkerdebugfscount_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 cssrstatflush memcgroupflushstats zswapshrinkercount shrinkerdebugfscountshow

shrinkerdebugfscountshow() invokes the ->countobjects() callback under rcureadlock(). The zswap callback flushes memcg stats via cssrstatflush(), which may sleep, so it must not run under RCU.

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

Drop the rcureadlock()/rcureadunlock().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64419.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5035ebc644aec92d55d1bbfe042f35341e4bffb5
Fixed
de5f69b8dae8698ac5e48dfcd30017887cdf4e5a
Fixed
e441cbfbd0eaa6404278e985033c33caba4db767
Fixed
2fed79f0fe8c8d28a972c290dbfd693c3546c8c4
Fixed
560e21e8ccff813e84d05f6500907c549a3d6985
Fixed
86237e56091e70f09c0fbf217f9d9c0e08f556c4
Fixed
b902890c62d200b3509cb5e09cf1e0a66553c128

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64419.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64419.json"