← VULNERABILITIES

CVE-2026-99388

smb: smbdirect: fix buffer length underflow in RDMA transfers

High · 8.8Fix available
CVSS
8.8
EPSS
0.71% (p55)
Published
2026-11-19
Age
15d old
Modified
2026-11-23
Product
Linux Linux

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Fixed in

1f5c774488fa2dabe6667cb26888aaea39c4ead6 · 2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76 · 5.15.226 · 5.16 · 5072f32330c71de91c1a844e7becaee48d743561 · 6.1.193 · 6.2 · 6.5 · 6.6 · 7193241a49c958782ba4b8df06da3734d1e317d2 · 94b94000981c56aa01e9ca2b411dff15600c079c · 956968544ae647aa9a9534b58735f47922c85d44 · a1a44af9fd0555755a81ca0c201f681572471d05

Affected packages

EcosystemPackageRangeFixed
vendorLinux>=5.15.145, <5.15.2265.15.226
vendorLinux>=5.15.145, <5.165.16
vendorLinux>=6.1.52, <6.1.1936.1.193
vendorLinux>=6.1.52, <6.26.2
vendorLinux>=6.4.15, <6.56.5
vendorLinux>=6.5.2, <6.66.6
vendorLinux>=c5aa74449a41d9c10900d82d2c2e62d5462ef932, <94b94000981c56aa01e9ca2b411dff15600c079c94b94000981c56aa01e9ca2b411dff15600c079c
vendorLinux>=cf859267e639cff1f525bd050f370ea752cc25f7, <2e4a60ba7adc1e7529f8923a8b1e452c6ba53c762e4a60ba7adc1e7529f8923a8b1e452c6ba53c76
vendorLinux>=e628bf939aafb61fbc56e9bdac8795cea5127e25, <1f5c774488fa2dabe6667cb26888aaea39c4ead61f5c774488fa2dabe6667cb26888aaea39c4ead6
vendorLinux>=e628bf939aafb61fbc56e9bdac8795cea5127e25, <5072f32330c71de91c1a844e7becaee48d7435615072f32330c71de91c1a844e7becaee48d743561
vendorLinux>=e628bf939aafb61fbc56e9bdac8795cea5127e25, <7193241a49c958782ba4b8df06da3734d1e317d27193241a49c958782ba4b8df06da3734d1e317d2
vendorLinux>=e628bf939aafb61fbc56e9bdac8795cea5127e25, <956968544ae647aa9a9534b58735f47922c85d44956968544ae647aa9a9534b58735f47922c85d44
vendorLinux>=e628bf939aafb61fbc56e9bdac8795cea5127e25, <a1a44af9fd0555755a81ca0c201f681572471d05a1a44af9fd0555755a81ca0c201f681572471d05

Sources

  • NVD · first seen 15d ago · NVD terms of use
  • CVE List · first seen 15d ago · CVE Terms of Use

References

JSON