smb: smbdirect: fix buffer length underflow in RDMA transfers

State
Published
Severity
8.8 High
Published
Nov 19, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

smb: smbdirect: fix buffer length underflow in RDMA transfers

When a remote buffer descriptor is larger than the remaining local buffer, smbdirect_connection_rdma_xmit() clamps its length and sets buf_len to zero. The common accounting code then subtracts the clamped length from buf_len, causing it to underflow. If another descriptor follows, the loop processes it with a wrapped remaining length and includes memory beyond the local buffer in the RDMA transfer.

A client can trigger an out-of-bounds kernel write with an SMB WRITE request, or an out-of-bounds kernel read with an SMB READ request, by supplying multiple RDMA buffer descriptors with an oversized descriptor before the last one.

Remove the premature assignment to buf_len. Subtracting the clamped length already consumes the remaining buffer, so the next iteration stops and only descriptors within the local buffer are used to build work requests.

ProductVersions
Linux Linuxc5aa74449a41d9c10900d82d2c2e62d5462ef932 to before 94b94000981c56aa01e9ca2b411dff15600c079c Affectedcf859267e639cff1f525bd050f370ea752cc25f7 to before 2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76 Affectede628bf939aafb61fbc56e9bdac8795cea5127e25 to before a1a44af9fd0555755a81ca0c201f681572471d05 Affectede628bf939aafb61fbc56e9bdac8795cea5127e25 to before 5072f32330c71de91c1a844e7becaee48d743561 Affectede628bf939aafb61fbc56e9bdac8795cea5127e25 to before 1f5c774488fa2dabe6667cb26888aaea39c4ead6 Affectede628bf939aafb61fbc56e9bdac8795cea5127e25 to before 956968544ae647aa9a9534b58735f47922c85d44 Affectede628bf939aafb61fbc56e9bdac8795cea5127e25 to before 7193241a49c958782ba4b8df06da3734d1e317d2 Affected1c660940f525279bb23b5d99a591535e7c359efe Affectedebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a Affected5.15.145 to before 5.15.226 Affected6.1.52 to before 6.1.193 Affected6.4.15 to before 6.5 Affected6.5.2 to before 6.6 Affected
Linux Linux6.6 Affectedbefore 6.6 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.