AZL-114794: CVE-2026-99389 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
smb: server: size directory name conversion buffer correctly
A 2048-byte ASCII directory name needs 4098 bytes when converted to UTF-16, including the terminator. ksmbdconvertdirinfoname() caps its allocation at PATHMAX and writes past the end of that buffer.
Allocate space for one UTF-16 code unit per input byte plus the terminator. Use kmallocarray() to check the size calculation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ksmbd_convert_dir_info_name(), allocate space for one UTF-16 code unit per input byte plus the terminator, and use kmalloc_array() to check the size calculation.