{"id":"CVE-2025-37952","summary":"ksmbd: Fix UAF in __close_file_table_ids","details":"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.","modified":"2026-04-16T04:43:00.142438877Z","published":"2025-05-20T16:01:47.164Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37952.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/16727e442568a46d9cca69fe2595896de86e120d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36991c1ccde2d5a521577c448ffe07fcccfe104d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9e9841e232b51171ddf3bc4ee517d5d28dc8cad6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fec1f9e9a650e8e7011330a085c77e7bf2a08ea9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37952.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37952"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"fec1f9e9a650e8e7011330a085c77e7bf2a08ea9"},{"fixed":"9e9841e232b51171ddf3bc4ee517d5d28dc8cad6"},{"fixed":"16727e442568a46d9cca69fe2595896de86e120d"},{"fixed":"36991c1ccde2d5a521577c448ffe07fcccfe104d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37952.json"}}],"schema_version":"1.7.5"}