CVE-2026-64419
Received Received - Intake

BaseFortify

Vulnerability report for CVE-2026-64419, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-25

Last updated on: 2026-07-25

Assigner: kernel.org

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().

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-25
Last Modified
2026-07-25
Generated
2026-07-25
AI Q&A
2026-07-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a bug where reading the debugfs 'count' file of a memory cgroup (memcg)-aware shrinker can cause the system to sleep while holding an RCU read-side lock. This leads to a kernel bug where sleeping functions are called from an invalid context, specifically when the zswap shrinker's count callback flushes memory cgroup statistics.

Detection Guidance

This vulnerability is specific to the Linux kernel and can be detected by checking for kernel logs indicating sleeping function calls within RCU read-side critical sections. Look for messages like 'BUG: sleeping function called from invalid context' in /var/log/kern.log or dmesg output.

Impact Analysis

This vulnerability can cause system instability or crashes due to the kernel attempting to sleep in an invalid context. It may lead to kernel panics, unexpected reboots, or denial-of-service conditions if the affected shrinker is actively used.

Mitigation Strategies

Update your Linux kernel to the latest stable version that includes the fix for this vulnerability. The issue is resolved by removing the unnecessary RCU lock in shrinker_debugfs_count_show().

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-64419. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart