{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-21660","id":"CVE-2025-21660","title":"ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked\n\nWhen `ksmbd_vfs_kern_path_locked` met an error and it is not the last\nentry, it will exit without restoring changed path buffer. But later this\nbuffer may be used as the filename for creation.","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked\n\nWhen `ksmbd_vfs_kern_path_locked` met an error and it is not the last\nentry, it will exit without restoring changed path buffer. But later this\nbuffer may be used as the filename for creation.","published":"2025-01-21T12:18:16.062Z","updated":"2026-11-17T07:01:57.333359461Z","reserved":"2024-12-29T08:45:45.732Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d1b2d2a9c912fc7b788985fbaf944e80f4b3f2af","lessThan":"13e41c58c74baa71f34c0830eaa3c29d53a6e964","status":"affected","versionType":"git"},{"version":"6ab95e27b77730de3fa2d601db3764490c5eede2","lessThan":"65b31b9d992c0fb0685c51a0cf09993832734fc4","status":"affected","versionType":"git"},{"version":"c5a709f08d40b1a082e44ffcde1aea4d2822ddd5","lessThan":"51669f4af5f7959565b48e55691ba92fabf5c587","status":"affected","versionType":"git"},{"version":"c5a709f08d40b1a082e44ffcde1aea4d2822ddd5","lessThan":"2ac538e40278a2c0c051cca81bcaafc547d61372","status":"affected","versionType":"git"},{"version":"d205cb1a13b37b2660df70a972dedc8c4ba1c2e8","status":"affected","versionType":"git"},{"version":"c1e27b70e79050530c671b9dab688386c86f039a","status":"affected","versionType":"git"},{"version":"6.1.113","lessThan":"6.1.125","status":"affected","versionType":"semver"},{"version":"6.6.54","lessThan":"6.6.72","status":"affected","versionType":"semver"},{"version":"6.10.13","lessThan":"6.11","status":"affected","versionType":"semver"},{"version":"6.11.2","lessThan":"6.12","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","lessThan":"6.12","status":"unaffected","versionType":"semver"},{"version":"6.1.125","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.72","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.10","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21660.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21660","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00203,"epssPercentile":0.10388,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-21660","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21660","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-21660","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-21660","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}