# CVE-2025-37802: ksmbd: fix WARNING "do not call blocking ops when !TASK_RUNNING"

CVE-2025-37802 is fixed in linux on 1 platform, first by DEBIAN-CVE-2025-37802, released May 8, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-37802
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0036
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 8, 2025
- Weakness: Improper Locking
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-37802

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 13.5 (trixie) | 6.12.27-1 | [DEBIAN-CVE-2025-37802](https://patchblox.com/security/data/fix/linux/debian-cve-2025-37802.md) | May 8, 2025 |
| Linux | linux Debian 14 | 6.12.27-1 | [DEBIAN-CVE-2025-37802](https://patchblox.com/security/data/fix/linux/debian-cve-2025-37802.md) | May 8, 2025 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
