CVE-2025-21660
ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked
Check your servers for CVE-2025-21660
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21660 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af, before 13e41c58c74baa71f34c0830eaa3c29d53a6e964 affected from 6ab95e27b77730de3fa2d601db3764490c5eede2, before 65b31b9d992c0fb0685c51a0cf09993832734fc4 affected from c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, before 51669f4af5f7959565b48e55691ba92fabf5c587 affected from c5a709f08d40b1a082e44ffcde1aea4d2822ddd5, before 2ac538e40278a2c0c051cca81bcaafc547d61372 affected d205cb1a13b37b2660df70a972dedc8c4ba1c2e8 affected c1e27b70e79050530c671b9dab688386c86f039a affected from 6.1.113, before 6.1.125 affected from 6.6.54, before 6.6.72 affected from 6.10.13, before 6.11 affected from 6.11.2, before 6.12
Other versions: unaffected
|
| Linux |
affected 6.12 unaffected before 6.12 unaffected from 6.1.125 up to and including 6.1.* unaffected from 6.6.72 up to and including 6.6.* unaffected from 6.12.10 up to and including 6.12.* unaffected 6.13 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21660 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21660
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21660
trivy image --scanners vuln IMAGE | grep CVE-2025-21660
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964 git.kernel.org
- https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4 git.kernel.org
- https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587 git.kernel.org
- https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
Source: the record CVE-2025-21660 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse