{"id":"CVE-2025-21660","summary":"ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked\n\nWhen `ksmbd_vfs_kern_path_locked` met an error and it is not the last\nentry, it will exit without restoring changed path buffer. But later this\nbuffer may be used as the filename for creation.","modified":"2026-04-16T00:01:11.872896730Z","published":"2025-01-21T12:18:16.062Z","related":["USN-7379-2","USN-7380-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21660.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372"},{"type":"WEB","url":"https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587"},{"type":"WEB","url":"https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21660.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21660"},{"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":"d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af"},{"fixed":"13e41c58c74baa71f34c0830eaa3c29d53a6e964"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6ab95e27b77730de3fa2d601db3764490c5eede2"},{"fixed":"65b31b9d992c0fb0685c51a0cf09993832734fc4"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c5a709f08d40b1a082e44ffcde1aea4d2822ddd5"},{"fixed":"51669f4af5f7959565b48e55691ba92fabf5c587"},{"fixed":"2ac538e40278a2c0c051cca81bcaafc547d61372"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"d205cb1a13b37b2660df70a972dedc8c4ba1c2e8"},{"last_affected":"c1e27b70e79050530c671b9dab688386c86f039a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21660.json"}}],"schema_version":"1.7.5"}