smb: server: make use of smbdirect_socket.send_io.bcredits
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.116.19.17.0In the Linux kernel, the following vulnerability has been resolved:
smb: server: make use of smbdirect_socket.send_io.bcredits
It turns out that our code will corrupt the stream of reassabled data transfer messages when we trigger an immendiate (empty) send.
In order to fix this we'll have a single 'batch' credit per connection. And code getting that credit is free to use as much messages until remaining_length reaches 0, then the batch credit it given back and the next logical send can happen.
From the CVE record · Linux
The Linux kernel SMB server can corrupt a stream of reassembled data transfer messages when an immediate empty send occurs. The input does not specify whether an attacker can trigger this behavior, or any network, authentication, or user-interaction requirements.
Engineers running the Linux kernel SMB server should check their deployments; affected versions are not specified.