CVE-2026-99275: smb: client: reject short SESSION_SETUP responses
In the Linux kernel, the following vulnerability has been resolved:
smb: client: reject short SESSIONSETUP responses
smb2checkmessage() accepts frames shorter than struct smb2pdu when the SMB2 status is non-zero, before the minimum-PDU check added by b4694f269e66d. A 64-byte STATUSMOREPROCESSINGREQUIRED SESSIONSETUP response is therefore accepted even though it cannot contain the SecurityBufferOffset and SecurityBufferLength fields.
The parser then reads those fields from stale bytes left in the reused receive buffer by an earlier frame. With a long stale SecurityBufferLength, decodentlmsspchallenge() copies up to about 64 KB from beyond the receive object and sends the data back to the server in the NTLMv2 AUTHENTICATE target info.
Reject short MPR SESSIONSETUP responses before the short-error path, and validate SecurityBufferOffset + SecurityBufferLength against the received response length before decoding the challenge.
The ordering bypass is not new: the short-error early return predates b4694f269e66d, and the unvalidated SecurityBufferLength read predates the 2016 raw NTLMSSP split in 166cea4dc3a4, so all supported stable trees are affected. Reproduced on 6.6.87.2; the path is unchanged on mainline.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
azurelinux/kernelto a version that resolves this vulnerability.Fixed in 0:6.18.64-1.1.azl4 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linux-6.12to a version that resolves this vulnerability.Fixed in 6.12.118-1~deb12u1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1Fixed in 7.3.3-1 - Compensating control
In the Linux kernel SMB client, reject short MPR SESSION_SETUP responses before the short-error path, and validate SecurityBufferOffset + SecurityBufferLength against the received response length before decoding the challenge.
Event History
Frequently Asked Questions
Who can exploit this issue?
A malicious or compromised SMB server can exploit a Linux SMB client during SESSION_SETUP. The client must connect to that server and process its crafted STATUS_MORE_PROCESSING_REQUIRED response.
What information could be exposed?
The flaw can cause the client to copy up to about 64 KB beyond its receive object and return that data to the server in the NTLMv2 AUTHENTICATE target information. The leaked content comes from memory beyond the receive object, influenced by stale bytes in a reused receive buffer.
Are supported Linux stable kernel trees affected?
Yes. The description states that all supported stable trees are affected, and the issue was reproduced on kernel version 6.6.87.2.
How can I identify attempts to exploit this?
The relevant condition is an SMB2 SESSION_SETUP response with STATUS_MORE_PROCESSING_REQUIRED that is only 64 bytes long. Exploitation relies on that response being accepted and followed by NTLMSSP challenge decoding.