CVE-2026-99272: smb: client: validate the data area in SMB2_read()
In the Linux kernel, the following vulnerability has been resolved:
smb: client: validate the data area in SMB2read()
SMB2read() copies le32tocpu(rsp->DataLength) bytes from (char )rsp + rsp->DataOffset without checking that the range lies within the response actually received. A READ response with DataOffset == 0 makes smb2getdataarealen() zero the data length, so smb2checkmessage() accepts a frame as short as the fixed response, while SMB2read() still uses the server-supplied DataLength, capped only by CIFSMAXMSGSIZE and the caller's length.
A malicious server can answer the synchronous read used by the mfsymlinks (or SFU) symlink parser with an 81-byte READ response carrying DataOffset 0 and DataLength 1067, making the client copy 1067 bytes from a 448-byte receive object (KASAN slab-out-of-bounds; up to 16 KiB in the general case).
Clamp a zero (or header-overlapping) DataOffset to readrspsize, as handlereaddata() does for the asynchronous path, and reject the response unless DataOffset + DataLength fits within rspiov.iovlen. The SMB1 helper was fixed the same way in 5be5bdda5863.
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
azurelinux/kernelto a version that resolves this vulnerability.Fixed in 6.6.162.1-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - 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
Event History
Frequently Asked Questions
Which SMB client activity is exposed to the reported out-of-bounds read?
The described trigger is a synchronous SMB read used by the mfsymlinks or SFU symlink parser. The asynchronous read path is described as already handling a zero or header-overlapping data offset safely.
What does an attacker need to control to exploit this?
An attacker needs to operate or control a malicious SMB server that can send a crafted SMB READ response. The example response uses DataOffset 0 with a DataLength larger than the received response body, causing the client to copy beyond the receive object.
Is a default SMB client configuration known to be affected?
The available information does not state whether mfsymlinks or SFU symlink parsing is enabled by default. It specifically identifies reads used by those symlink parsers as the triggering context.