CVE-2026-97563
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
25/09/2026
Last modified:
19/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
smb: client: reject out-of-bounds DataOffset in CIFSSMBRead()<br />
<br />
The SMB1 synchronous read helper CIFSSMBRead() validates the server&#39;s<br />
DataLength against CIFSMaxBufSize and the caller&#39;s count, but never<br />
validates DataOffset. The copy source is formed as<br />
<br />
&pSMBr->hdr.Protocol + le16_to_cpu(pSMBr->DataOffset)<br />
<br />
and memcpy()&#39;d for DataLength bytes with no check that the<br />
[DataOffset, DataOffset + DataLength) range lies within the response<br />
actually received from the server.<br />
<br />
A malicious or compromised SMB1 server can return a response carrying<br />
an in-range DataLength and a large DataOffset, driving the source<br />
pointer past the end of the response buffer. The memcpy() then copies<br />
adjacent kernel heap into the caller&#39;s read buffer (information<br />
disclosure), or reads unmapped memory and oopses (denial of service).<br />
SMB1 is not negotiated by default; reaching this code requires an<br />
explicit vers=1.0 mount.<br />
<br />
Both DataOffset and the received response length recorded in<br />
rsp_iov.iov_len are relative to the start of the SMB header, so reject<br />
the response unless DataOffset + DataLength fits within that length,<br />
using overflow-safe arithmetic, before forming the source pointer.<br />
The response length has been validated by the previous patch, so the<br />
DataOffset and DataLength fields can be read safely here.<br />
<br />
While here, make data_length unsigned. It holds a length derived from<br />
unsigned on-the-wire fields and is only ever compared against unsigned<br />
quantities; print it with %u accordingly, and add __func__ to the<br />
cifs_dbg() calls in this function.


