A vulnerability in the Linux kernel's ksmbd component was fixed where the function ksmbd_vfs_kern_path_locked could leave a changed path buffer in an inconsistent state if an error occurred before processing the last entry. This could result in the buffer being incorrectly used as a filename for creation later.