What’s Vulnerable › Vulnerabilities

CVE-2025-21660: ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.125, 6.11, 6.12.10, 6.6.72. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-21660 or the next vulnerability affects your stack