ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel's ksmbd component, an error in ksmbd_vfs_kern_path_locked can leave a modified path buffer unrestored when the error occurs before the last entry. The buffer may later be used as the filename for file creation, potentially causing creation at an unintended path. The input does not specify attacker access requirements or whether user interaction is needed.
Teams running Linux kernels with the affected ksmbd code should check their kernel version against the vendor advisory; affected versions are not specified here.