{
  "id": "CVE-2025-38717",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38717",
  "published_at": "2025-09-04T15:33:11.686Z",
  "title": "net: kcm: Fix race condition in kcm_unattach()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "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\nnet: kcm: Fix race condition in kcm_unattach()\n\nsyzbot found a race condition when kcm_unattach(psock)\nand kcm_release(kcm) are executed at the same time.\n\nkcm_unattach() is missing a check of the flag\nkcm-\u003etx_stopped before calling queue_work().\n\nIf the kcm has a reserved psock, kcm_unattach() might get executed\nbetween cancel_work_sync() and unreserve_psock() in kcm_release(),\nrequeuing kcm-\u003etx_work right before kcm gets freed in kcm_done().\n\nRemove kcm-\u003etx_stopped and replace it by the less\nerror-prone disable_work_sync().",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 4.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \u003c c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308",
          "\u003e= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \u003c 7275dc3bb8f91b23125ff3f47b6529935cf46152",
          "\u003e= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \u003c 798733ee5d5788b12e8a52db1519abc17e826f69",
          "\u003e= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \u003c 52565a935213cd6a8662ddb8efe5b4219343a25d"
        ],
        "fixed_in": [
          "c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308",
          "7275dc3bb8f91b23125ff3f47b6529935cf46152",
          "798733ee5d5788b12e8a52db1519abc17e826f69",
          "52565a935213cd6a8662ddb8efe5b4219343a25d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.6"
        ],
        "fixed_in": [
          "0",
          "6.12.43",
          "6.15.11",
          "6.16.2",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308 or 7275dc3bb8f91b23125ff3f47b6529935cf46152 or 798733ee5d5788b12e8a52db1519abc17e826f69 or 52565a935213cd6a8662ddb8efe5b4219343a25d or later.",
      "Upgrade Linux to 0 or 6.12.43 or 6.15.11 or 6.16.2 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
