smb: smbdirect: fix buffer length underflow in RDMA transfers
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from c5aa74449a41d9c10900d82d2c2e62d5462ef932, before 94b94000981c56aa01e9ca2b411dff15600c079c; from cf859267e639cff1f525bd050f370ea752cc25f7, before 2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76; from e628bf939aafb61fbc56e9bdac8795cea5127e25, before a1a44af9fd0555755a81ca0c201f681572471d05; from e628bf939aafb61fbc56e9bdac8795cea5127e25, before 5072f32330c71de91c1a844e7becaee48d743561; from e628bf939aafb61fbc56e9bdac8795cea5127e25, before 1f5c774488fa2dabe6667cb26888aaea39c4ead6; from e628bf939aafb61fbc56e9bdac8795cea5127e25, before 956968544ae647aa9a9534b58735f47922c85d44; and 7 more | 94b94000981c56aa01e9ca2b411dff15600c079c; 2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76; a1a44af9fd0555755a81ca0c201f681572471d05; 5072f32330c71de91c1a844e7becaee48d743561 |
| Linux Linux | Software | 6.6 | not recorded |
The 8.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 2.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 7 sources for this flaw, none tagged as a vendor patch.