Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

CVE-2026-99389

smb: server: size directory name conversion buffer correctly

Description

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. ksmbd_convert_dir_info_name() caps its allocation at PATH_MAX and writes past the end of that buffer. Allocate space for one UTF-16 code unit per input byte plus the terminator. Use kmalloc_array() to check the size calculation.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < e736ee3660eac5922729a9b3c55cecd74611663caffected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < c8a4c381fd68895bbb077df9b5322c8987b31cf5affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f1f37834eaba5904103af1f18afe3510c7e9dc71affected

Linux Linux

Default version status: affected

  • 5.15affected
  • 0 to < 5.15unaffected
  • 6.12.117 to ≤ 6.12.*unaffected
  • 6.18.61 to ≤ 6.18.*unaffected
  • 7.3.2 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References