CVE-2025-21660

published 21 Jan 2025 · updated 17 Nov 2026

ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 13e41c58c74baa71f34c0830eaa3c29d53a6e964, Kernel 6.12, Kernel 6.6.72 and 6 more.

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked When `ksmbd_vfs_kern_path_locked` met an error and it is not the last entry, it will exit without restoring changed path buffer. But later this buffer may be used as the filename for creation.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af <13e41c58c74baa71f34c0830eaa3c29d53a6e964, >=6.11.2 <6.12, >=6.6.54 <6.6.72, >=6ab95e27b77730de3fa2d601db3764490c5eede2 <65b31b9d992c0fb0685c51a0cf09993832734fc4, >=c5a709f08d40b1a082e44ffcde1aea4d2822ddd5 <2ac538e40278a2c0c051cca81bcaafc547d61372, >=c5a709f08d40b1a082e44ffcde1aea4d2822ddd5 <51669f4af5f7959565b48e55691ba92fabf5c587, =6.12, =c1e27b70e79050530c671b9dab688386c86f039a, =d205cb1a13b37b2660df70a972dedc8c4ba1c2e8, >=6.1.113 <6.1.125, >=6.10.13 <6.1113e41c58c74baa71f34c0830eaa3c29d53a6e964, 6.12, 6.6.72, 65b31b9d992c0fb0685c51a0cf09993832734fc4, 2ac538e40278a2c0c051cca81bcaafc547d61372, 51669f4af5f7959565b48e55691ba92fabf5c587, 6.1.125, 6.11
linux-kernel: Kernel>=6.10.13 <6.11, >=6.11.2 <6.12, >=6.12.0 <6.12.10, >=6.6.54 <6.6.72, >=6.1.113 <6.1.1256.11, 6.12, 6.12.10, 6.6.72, 6.1.125

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-21660 severity on Zeptric[![CVE-2025-21660](https://zeptric.io/badge/cve/CVE-2025-21660.svg)](https://zeptric.io/cve/CVE-2025-21660)