ksmbd: reserve space for the UTF-16 terminator in stream info
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel a025c4991a7d83edc4dd339e3ea86d8ff6226eca, Kernel 06a751809ebd33e95b05bf733697318a17a4872b, Kernel 0e64f89563164719ceb1aa33f2a8bfd6391fa340 and 4 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <a025c4991a7d83edc4dd339e3ea86d8ff6226eca, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <06a751809ebd33e95b05bf733697318a17a4872b, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <0e64f89563164719ceb1aa33f2a8bfd6391fa340, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <583ede545a14f275a959772b5e1e50fe3e14b861, =5.15 | a025c4991a7d83edc4dd339e3ea86d8ff6226eca, 06a751809ebd33e95b05bf733697318a17a4872b, 0e64f89563164719ceb1aa33f2a8bfd6391fa340, 583ede545a14f275a959772b5e1e50fe3e14b861 |
| linux-kernel: Kernel | >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=5.15.0 <6.12.117 | 6.18.61, 7.3.2, 6.12.117 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket