{"id":"CVE-2025-38711","published":"2025-09-04T15:33:01Z","modified":"2026-05-12T12:05:45Z","title":"smb/server: avoid deadlock when linking with ReplaceIfExists","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb/server: avoid deadlock when linking with ReplaceIfExists\n\nIf smb2_create_link() is called with ReplaceIfExists set and the name\ndoes exist then a deadlock will happen.\n\nksmbd_vfs_kern_path_locked() will return with success and the parent\ndirectory will be locked.  ksmbd_vfs_remove_file() will then remove the\nfile.  ksmbd_vfs_link() will then be called while the parent is still\nlocked.  It will try to lock the same parent and will deadlock.\n\nThis patch moves the ksmbd_vfs_kern_path_unlock() call to *before*\nksmbd_vfs_link() and then simplifies the code, removing the file_present\nflag variable.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00191,"percentile":0.05049,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9d5012ffe14120f978ee34aef4df3d6cb026b7c4","tags":[]},{"url":"https://git.kernel.org/stable/c/ac98d54630d5b52e3f684d872f0d82c06c418ea9","tags":[]},{"url":"https://git.kernel.org/stable/c/1e858a7a51c7b8b009d8f246de7ceb7743b44a71","tags":[]},{"url":"https://git.kernel.org/stable/c/814cfdb6358d9b84fcbec9918c8f938cc096a43a","tags":[]},{"url":"https://git.kernel.org/stable/c/a7dddd62578c2eb6cb28b8835556a121b5157323","tags":[]},{"url":"https://git.kernel.org/stable/c/a726fef6d7d4cfc365d3434e3916dbfe78991a33","tags":[]},{"url":"https://git.kernel.org/stable/c/d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[]}],"priority":{"score":1.0,"factors":[{"name":"EPSS percentile","points":1.01}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ac98d54630d5b52e3f684d872f0d82c06c418ea9",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 814cfdb6358d9b84fcbec9918c8f938cc096a43a",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a7dddd62578c2eb6cb28b8835556a121b5157323",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a726fef6d7d4cfc365d3434e3916dbfe78991a33",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2025-26758","exploited":false,"provenance":"source"}}