{"id":"CVE-2025-37952","published":"2025-05-20T16:01:47Z","modified":"2026-10-30T12:21:27Z","title":"ksmbd: Fix UAF in __close_file_table_ids","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->refcount are not sufficient to\nprevent this.\n\nThe fix takes ft->lock 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00379,"percentile":0.32679,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/21100812657965dd95bc305f6076f62012f34cf4","tags":[]},{"url":"https://git.kernel.org/stable/c/fec1f9e9a650e8e7011330a085c77e7bf2a08ea9","tags":[]},{"url":"https://git.kernel.org/stable/c/9e9841e232b51171ddf3bc4ee517d5d28dc8cad6","tags":[]},{"url":"https://git.kernel.org/stable/c/16727e442568a46d9cca69fe2595896de86e120d","tags":[]},{"url":"https://git.kernel.org/stable/c/36991c1ccde2d5a521577c448ffe07fcccfe104d","tags":[]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":6.54},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 21100812657965dd95bc305f6076f62012f34cf4",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < fec1f9e9a650e8e7011330a085c77e7bf2a08ea9",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9e9841e232b51171ddf3bc4ee517d5d28dc8cad6",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 16727e442568a46d9cca69fe2595896de86e120d",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 36991c1ccde2d5a521577c448ffe07fcccfe104d"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2025-15906","exploited":false,"provenance":"source"}}