Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: reserve space for the UTF-16 terminator in stream info smb_strtoUTF16() always writes a terminating zero UTF-16 unit after the converted characters, but get_file_stream_info() budgets only sizeof(struct smb2_file_stream_info) + streamlen * 2 for a stream entry and sizeof(struct smb2_file_stream_info) + 7 * 2 for the trailing "::$DATA" entry. When an entry exactly fills the 448-byte small response buffer, the terminator is written two bytes past the allocation. Reserve one extra UTF-16 unit in both budget checks. The terminator is not part of the wire format, so the reported lengths are unchanged.
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 < 583ede545a14f275a959772b5e1e50fe3e14b861affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 06a751809ebd33e95b05bf733697318a17a4872baffectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 0e64f89563164719ceb1aa33f2a8bfd6391fa340affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < a025c4991a7d83edc4dd339e3ea86d8ff6226ecaaffected
Linux Linux
Default version status: affected
5.15affected0 to < 5.15unaffected6.12.117 to ≤ 6.12.*unaffected6.18.61 to ≤ 6.18.*unaffected7.3.2 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected