CVE-2025-21660
ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked
Mitigation
- Upgrade Linux to 6.12 or later.
Who should check
- Anyone running Linux >= d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af, < 13e41c58c74baa71f34c0830eaa3c29d53a6e964; >= 6ab95e27b77730de3fa2d601db3764490c5eede2, < 65b31b9d992c0fb0685c51a0cf09993832734fc4; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 51669f4af5f7959565b48e55691ba92fabf5c587; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 2ac538e40278a2c0c051cca81bcaafc547d61372; d205cb1a13b37b2660df70a972dedc8c4ba1c2e8; c1e27b70e79050530c671b9dab688386c86f039a; >= 6.1.113, < 6.1.125; >= 6.6.54, < 6.6.72; >= 6.10.13, < 6.11; >= 6.11.2, < 6.12
- Anyone running Linux 6.12
Vulnerability facts
- Affected
- Linux >= d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af, < 13e41c58c74baa71f34c0830eaa3c29d53a6e964; >= 6ab95e27b77730de3fa2d601db3764490c5eede2, < 65b31b9d992c0fb0685c51a0cf09993832734fc4; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 51669f4af5f7959565b48e55691ba92fabf5c587; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 2ac538e40278a2c0c051cca81bcaafc547d61372; d205cb1a13b37b2660df70a972dedc8c4ba1c2e8; c1e27b70e79050530c671b9dab688386c86f039a; >= 6.1.113, < 6.1.125; >= 6.6.54, < 6.6.72; >= 6.10.13, < 6.11; >= 6.11.2, < 6.12; Linux 6.12
- Fixed in
- Linux 13e41c58c74baa71f34c0830eaa3c29d53a6e964, Linux 65b31b9d992c0fb0685c51a0cf09993832734fc4, Linux 51669f4af5f7959565b48e55691ba92fabf5c587, Linux 2ac538e40278a2c0c051cca81bcaafc547d61372, Linux 6.1.125, Linux 6.6.72, Linux 6.11, Linux 6.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af, < 13e41c58c74baa71f34c0830eaa3c29d53a6e964; >= 6ab95e27b77730de3fa2d601db3764490c5eede2, < 65b31b9d992c0fb0685c51a0cf09993832734fc4; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 51669f4af5f7959565b48e55691ba92fabf5c587; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 2ac538e40278a2c0c051cca81bcaafc547d61372; d205cb1a13b37b2660df70a972dedc8c4ba1c2e8; c1e27b70e79050530c671b9dab688386c86f039a; >= 6.1.113, < 6.1.125; >= 6.6.54, < 6.6.72; >= 6.10.13, < 6.11; >= 6.11.2, < 6.12 | — | cvelist |
| Linux | 6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21660. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21660.md Affected: Linux >= d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af, < 13e41c58c74baa71f34c0830eaa3c29d53a6e964; >= 6ab95e27b77730de3fa2d601db3764490c5eede2, < 65b31b9d992c0fb0685c51a0cf09993832734fc4; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 51669f4af5f7959565b48e55691ba92fabf5c587; >= c5a709f08d40b1a082e44ff… Fixed in: Linux 13e41c58c74baa71f34c0830eaa3c29d53a6e964, Linux 65b31b9d992c0fb0685c51a0cf09993832734fc4, Linux 51669f4af5f7959565b48e55691ba92fabf5c587, Linux 2ac538e40278a2c0c051cca81bcaafc547d61372, Linux 6.1.125, Linux 6.6.72, Linux 6.11, Linux 6.12 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2025-21660 being exploited?
There is no confirmed exploitation: CVE-2025-21660 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21660?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21660?
Linux >= d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af, < 13e41c58c74baa71f34c0830eaa3c29d53a6e964; >= 6ab95e27b77730de3fa2d601db3764490c5eede2, < 65b31b9d992c0fb0685c51a0cf09993832734fc4; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 51669f4af5f7959565b48e55691ba92fabf5c587; >= c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, < 2ac538e40278a2c0c051cca81bcaafc547d61372; d205cb1a13b37b2660df70a972dedc8c4ba1c2e8; c1e27b70e79050530c671b9dab688386c86f039a; >= 6.1.113, < 6.1.125; >= 6.6.54, < 6.6.72; >= 6.10.13, < 6.11; >= 6.11.2, < 6.12; Linux 6.12.
Is there a fix for CVE-2025-21660?
Yes. Fixed in Linux 13e41c58c74baa71f34c0830eaa3c29d53a6e964, Linux 65b31b9d992c0fb0685c51a0cf09993832734fc4, Linux 51669f4af5f7959565b48e55691ba92fabf5c587, Linux 2ac538e40278a2c0c051cca81bcaafc547d61372, Linux 6.1.125, Linux 6.6.72, Linux 6.11, Linux 6.12. Upgrade Linux to 6.12 or later.
How do I check if I'm affected by CVE-2025-21660?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.