CVE-2025-37802

ksmbd: fix WARNING "do not call blocking ops when !TASK_RUNNING"

7.5 high EPSS 0.37%

Published 8 May 2025 Updated 14 Sep 2026 CNA: Linux

Check your servers for CVE-2025-37802

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-2025-37802 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:

ksmbd: fix WARNING "do not call blocking ops when !TASK_RUNNING"

wait_event_timeout() will set the state of the current task to TASK_UNINTERRUPTIBLE, before doing the condition check. This means that ksmbd_durable_scavenger_alive() 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 !TASK_RUNNING; state=2 set at [<0000000061515a6f>] prepare_to_wait_event+0x9f/0x6c0 WARNING: CPU: 2 PID: 4147 at kernel/sched/core.c:10099 __might_sleep+0x12f/0x160

mutex lock is not needed in ksmbd_durable_scavenger_alive().

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.37%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 33.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 97aabdbf7ba82da20e698f0e62917fb206d42941
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 8f805b3746d2f41702c77cba22f94f8415fadd1a
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before cd161198e091e8a62b9bd631be970ea9a87d2d6a
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 1df0d4c616138784e033ad337961b6e1a6bcd999
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 6.6.157 up to and including 6.6.*
unaffected from 6.12.26 up to and including 6.12.*
unaffected from 6.14.5 up to and including 6.14.*
unaffected 6.15 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-2025-37802 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37802

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-2025-37802
trivy image --scanners vuln IMAGE | grep CVE-2025-37802

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-2025-37802 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.