What’s Vulnerable › Vulnerabilities
CVE-2025-21660: ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-01-21 · updated 2026-06-17
Description
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 products
- Linux kernel: from 6.1.113 before 6.1.125; from 6.6.54 before 6.6.72; from 6.10.13 before 6.11; from 6.11.2 before 6.12.10; 6.13-rc1, 6.13-rc2, 6.13-rc3, 6.13-rc4, 6.13-rc5, 6.13-rc6 — fixed in 6.1.125, 6.11, 6.12.10, 6.6.72
How to fix
Upgrade to a fixed version: Linux kernel 6.1.125, 6.11, 6.12.10, 6.6.72. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964
- https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372
- https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587
- https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Get alerted when CVE-2025-21660 or the next vulnerability affects your stack