smb: server: size directory name conversion buffer correctly
- State
- Published
- Severity
- 7.5 High
- Published
- Nov 19, 2026
- Updated
- Nov 23, 2026
- Reserved
- Sep 25, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 534f1360fa87a1a72a5f25541103c66b8d42f73c Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 9b9d681fd3a78932331ab1246503f102d489cd63 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 84e2e9e1167ea4a6ea68b90eb190bd0350e7be74 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before e736ee3660eac5922729a9b3c55cecd74611663c Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before c8a4c381fd68895bbb077df9b5322c8987b31cf5 Affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before f1f37834eaba5904103af1f18afe3510c7e9dc71 Affected |
| Linux Linux | 5.15 Affectedbefore 5.15 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.5 High | Linux |
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/534f1360fa87a1a72a5f25541103c66b8d42f73c
- https://git.kernel.org/stable/c/9b9d681fd3a78932331ab1246503f102d489cd63
- https://git.kernel.org/stable/c/84e2e9e1167ea4a6ea68b90eb190bd0350e7be74
- https://git.kernel.org/stable/c/e736ee3660eac5922729a9b3c55cecd74611663c
- https://git.kernel.org/stable/c/93d1fbe38f0c1f230fdd24410353b1fd9e5883d3
- https://git.kernel.org/stable/c/c8a4c381fd68895bbb077df9b5322c8987b31cf5
- https://git.kernel.org/stable/c/f1f37834eaba5904103af1f18afe3510c7e9dc71
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.