CVE-2025-37802: ksmbd: fix WARNING "do not call blocking ops when !TASK_RUNNING"
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix WARNING "do not call blocking ops when !TASKRUNNING"
waiteventtimeout() will set the state of the current task to TASKUNINTERRUPTIBLE, before doing the condition check. This means that ksmbddurablescavengeralive() will try to acquire the mutex while already in a sleeping state. The scheduler warns us by giving the following warning:
do not call blocking ops when !TASKRUNNING; state=2 set at [<0000000061515a6f>] preparetowaitevent+0x9f/0x6c0 WARNING: CPU: 2 PID: 4147 at kernel/sched/core.c:10099 mightsleep+0x12f/0x160
mutex lock is not needed in ksmbddurablescavengeralive().
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-37802?
CVE-2025-37802 has a moderate severity level due to its potential impact on system stability.
How do I fix CVE-2025-37802?
To fix CVE-2025-37802, update to the latest version of the Linux kernel that includes the patch for this vulnerability.
What systems are affected by CVE-2025-37802?
CVE-2025-37802 affects various versions of the Linux kernel where the ksmbd module is utilized.
What type of vulnerability is CVE-2025-37802?
CVE-2025-37802 is a kernel vulnerability related to improper handling of task states in the ksmbd module.
Is there a workaround for CVE-2025-37802 if I cannot update?
Currently, there is no known effective workaround for CVE-2025-37802; applying the kernel update is recommended.