Skip to content
DayZeroHub
High Not yet writtenCVSS 7.5CVE-2026-99389

CVE-2026-99389: smb: server: size directory name conversion buffer correctly

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99389: high-severity vulnerability (CVSS 7.5) in Linux Linux.

What happened

Original description from the source: 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.

Why it matters

High severity, CVSS 7.5.

Affected products and versions

Linux Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 534f1360fa87a1a72a5f25541103c66b8d42f73c; Linux Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 9b9d681fd3a78932331ab1246503f102d489cd63; Linux Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 84e2e9e1167ea4a6ea68b90eb190bd0350e7be74; Linux Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < e736ee3660eac5922729a9b3c55cecd74611663c; Linux Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3; Linux Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < c8a4c381fd68895bbb077df9b5322c8987b31cf5; Linux Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < f1f37834eaba5904103af1f18afe3510c7e9dc71; Linux Linux 5.15; Linux Linux < 5.15; Linux Linux 5.15.226 (fixed in 5.15.226); Linux Linux 6.1.193 (fixed in 6.1.193); Linux Linux 6.6.163 (fixed in 6.6.163)

ProductVersionsFixed in
Linux Linux>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 534f1360fa87a1a72a5f25541103c66b8d42f73c—
Linux Linux>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 9b9d681fd3a78932331ab1246503f102d489cd63—
Linux Linux>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 84e2e9e1167ea4a6ea68b90eb190bd0350e7be74—
Linux Linux>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < e736ee3660eac5922729a9b3c55cecd74611663c—
Linux Linux>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3—
Linux Linux>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < c8a4c381fd68895bbb077df9b5322c8987b31cf5—
Linux Linux>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < f1f37834eaba5904103af1f18afe3510c7e9dc71—
Linux Linux5.15—
Linux Linux< 5.15—
Linux Linux5.15.2265.15.226
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1176.12.117
Linux Linux6.18.616.18.61
Linux Linux7.3.27.3.2
Linux Linux7.4-rc17.4-rc1

Action recommended by the source

Upgrade to a fixed version: 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1.

Fixed in: 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.