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 !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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.26, 6.14.5, 6.6.157
- CVEs
- CVE-2025-37802
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:22 UTC · Revision 1
Source evidence
ksmbd: fix WARNING "do not call blocking ops when !TASK_RUNNING"
core-osv · Original sourcePublished 8 May 2025, 06:26 UTC
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().
osv:CVE-2025-37802
Kernel
Fixed versions: 6.6.157, 6.12.26, 6.14.5
Complete source record
{
"id": "bdeb6b1050441dc3a3573b2572c59f3de0673abea89cf05fb98ffff3e3bbf0b3",
"url": "https://osv.dev/vulnerability/CVE-2025-37802",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ksmbd: fix WARNING \"do not call blocking ops when !TASK_RUNNING\"",
"summary": "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().",
"evidence": "osv:CVE-2025-37802",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.157",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.26",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-37802",
"aliases": [
"CVE-2025-37802"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "0626e6641f6b467447c81dd7678a69c66f7746cf"
},
{
"fixed": "97aabdbf7ba82da20e698f0e62917fb206d42941"
},
{
"fixed": "8f805b3746d2f41702c77cba22f94f8415fadd1a"
},
{
"fixed": "cd161198e091e8a62b9bd631be970ea9a87d2d6a"
},
{
"fixed": "1df0d4c616138784e033ad337961b6e1a6bcd999"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37802.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "6.6.157"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.26"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.14.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37802.json"
}
}
],
"modified": "2026-10-28T02:30:36.791284338Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1df0d4c616138784e033ad337961b6e1a6bcd999",
"https://git.kernel.org/stable/c/8f805b3746d2f41702c77cba22f94f8415fadd1a",
"https://git.kernel.org/stable/c/97aabdbf7ba82da20e698f0e62917fb206d42941",
"https://git.kernel.org/stable/c/cd161198e091e8a62b9bd631be970ea9a87d2d6a",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37802.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-37802",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37802.json"
}
},
"related_cves": [
{
"value": "CVE-2025-37802",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504067,
"published_at": "2025-05-08T06:26:03.075+00:00"
}