{
  "id": "CVE-2025-21786",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21786",
  "published_at": "2025-02-27T02:18:26.406Z",
  "title": "workqueue: Put the pwq after detaching the rescuer from the pool",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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\nworkqueue: Put the pwq after detaching the rescuer from the pool\n\nThe commit 68f83057b913(\"workqueue: Reap workers via kthread_stop() and\nremove detach_completion\") adds code to reap the normal workers but\nmistakenly does not handle the rescuer and also removes the code waiting\nfor the rescuer in put_unbound_pool(), which caused a use-after-free bug\nreported by Cheung Wall.\n\nTo avoid the use-after-free bug, the pool’s reference must be held until\nthe detachment is complete. Therefore, move the code that puts the pwq\nafter detaching the rescuer from the pool.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 68f83057b913467a999e1bf9e0da6a119668f769, \u003c e7c16028a424dd35be1064a68fa318be4359310f",
          "\u003e= 68f83057b913467a999e1bf9e0da6a119668f769, \u003c 835b69c868f53f959d4986bbecd561ba6f38e492",
          "\u003e= 68f83057b913467a999e1bf9e0da6a119668f769, \u003c e76946110137703c16423baf6ee177b751a34b7e"
        ],
        "fixed_in": [
          "e7c16028a424dd35be1064a68fa318be4359310f",
          "835b69c868f53f959d4986bbecd561ba6f38e492",
          "e76946110137703c16423baf6ee177b751a34b7e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.11"
        ],
        "fixed_in": [
          "0",
          "6.12.16",
          "6.13.4",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e7c16028a424dd35be1064a68fa318be4359310f or 835b69c868f53f959d4986bbecd561ba6f38e492 or e76946110137703c16423baf6ee177b751a34b7e or later.",
      "Upgrade Linux to 0 or 6.12.16 or 6.13.4 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
