{
  "id": "CVE-2025-37952",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37952",
  "published_at": "2025-05-20T16:01:47.164Z",
  "title": "ksmbd: Fix UAF in __close_file_table_ids",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/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\nksmbd: Fix UAF in __close_file_table_ids\n\nA use-after-free is possible if one thread destroys the file\nvia __ksmbd_close_fd while another thread holds a reference to\nit. The existing checks on fp-\u003erefcount are not sufficient to\nprevent this.\n\nThe fix takes ft-\u003elock around the section which removes the\nfile from the file table. This prevents two threads acquiring the\nsame file pointer via __close_file_table_ids, as well as the other\nfunctions which retrieve a file from the IDR and which already use\nthis same lock.",
  "cwe": "CWE-416",
  "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:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 21100812657965dd95bc305f6076f62012f34cf4",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c fec1f9e9a650e8e7011330a085c77e7bf2a08ea9",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 9e9841e232b51171ddf3bc4ee517d5d28dc8cad6",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 16727e442568a46d9cca69fe2595896de86e120d",
          "\u003e= 0626e6641f6b467447c81dd7678a69c66f7746cf, \u003c 36991c1ccde2d5a521577c448ffe07fcccfe104d"
        ],
        "fixed_in": [
          "21100812657965dd95bc305f6076f62012f34cf4",
          "fec1f9e9a650e8e7011330a085c77e7bf2a08ea9",
          "9e9841e232b51171ddf3bc4ee517d5d28dc8cad6",
          "16727e442568a46d9cca69fe2595896de86e120d",
          "36991c1ccde2d5a521577c448ffe07fcccfe104d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.15"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.91",
          "6.12.29",
          "6.14.7",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 21100812657965dd95bc305f6076f62012f34cf4 or fec1f9e9a650e8e7011330a085c77e7bf2a08ea9 or 9e9841e232b51171ddf3bc4ee517d5d28dc8cad6 or 16727e442568a46d9cca69fe2595896de86e120d or 36991c1ccde2d5a521577c448ffe07fcccfe104d or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.91 or 6.12.29 or 6.14.7 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
