A vulnerability in the Linux kernel's SMB server component involves incorrect sizing of the directory name conversion buffer. The function ksmbd_convert_dir_info_name() allocates insufficient memory when converting ASCII directory names to UTF-16, potentially causing a buffer overflow. This issue has been addressed by allocating space for one UTF-16 code unit per input byte plus a terminator and using kmalloc_array() to validate the allocation size.