CVE-2025-21660

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21660
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21660.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21660
Downstream
Related
Published
2025-01-21T12:18:16.062Z
Modified
2025-11-27T02:32:57.839080Z
Summary
ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked
Details

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix unexpectedly changed path in ksmbdvfskernpathlocked

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2025/21xxx/CVE-2025-21660.json"
}
References

Affected packages

Git / 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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c5a709f08d40b1a082e44ffcde1aea4d2822ddd5
Fixed
2ac538e40278a2c0c051cca81bcaafc547d61372
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
d205cb1a13b37b2660df70a972dedc8c4ba1c2e8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
c1e27b70e79050530c671b9dab688386c86f039a

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.125
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.72
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.10