{
  "id": "CVE-2025-37802",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37802",
  "published_at": "2025-05-08T06:26:03.075Z",
  "title": "ksmbd: fix WARNING \"do not call blocking ops when !TASK_RUNNING\"",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix WARNING \"do not call blocking ops when !TASK_RUNNING\"\n\nwait_event_timeout() will set the state of the current\ntask to TASK_UNINTERRUPTIBLE, before doing the condition check. This\nmeans that ksmbd_durable_scavenger_alive() will try to acquire the mutex\nwhile already in a sleeping state. The scheduler warns us by giving\nthe following warning:\n\ndo not call blocking ops when !TASK_RUNNING; state=2 set at\n [\u003c0000000061515a6f\u003e] prepare_to_wait_event+0x9f/0x6c0\nWARNING: CPU: 2 PID: 4147 at kernel/sched/core.c:10099 __might_sleep+0x12f/0x160\n\nmutex lock is not needed in ksmbd_durable_scavenger_alive().",
  "cwe": "CWE-667",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 97aabdbf7ba82da20e698f0e62917fb206d42941",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 8f805b3746d2f41702c77cba22f94f8415fadd1a",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c cd161198e091e8a62b9bd631be970ea9a87d2d6a",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 1df0d4c616138784e033ad337961b6e1a6bcd999"
        ],
        "fixed_in": [
          "97aabdbf7ba82da20e698f0e62917fb206d42941",
          "8f805b3746d2f41702c77cba22f94f8415fadd1a",
          "cd161198e091e8a62b9bd631be970ea9a87d2d6a",
          "1df0d4c616138784e033ad337961b6e1a6bcd999"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.15"
        ],
        "fixed_in": [
          "0",
          "6.6.157",
          "6.12.26",
          "6.14.5",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 97aabdbf7ba82da20e698f0e62917fb206d42941 or 8f805b3746d2f41702c77cba22f94f8415fadd1a or cd161198e091e8a62b9bd631be970ea9a87d2d6a or 1df0d4c616138784e033ad337961b6e1a6bcd999 or later.",
      "Upgrade Linux to 0 or 6.6.157 or 6.12.26 or 6.14.5 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
