net/smc: check return value of sock_recvmsg when draining clc data
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fb4f79264c0fc6fd5a68ffe3e31bfff97311e1f1 · < c5b8ee5022a19464783058dc6042e8eefa34e8cd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/smc: check return value of sock_recvmsg when draining clc data
When receiving clc msg, the field length in smc_clc_msg_hdr indicates the length of msg should be received from network and the value should not be fully trusted as it is from the network. Once the value of length exceeds the value of buflen in function smc_clc_wait_msg it may run into deadloop when trying to drain the remaining data exceeding buflen.
This patch checks the return value of sock_recvmsg when draining data in case of deadloop in draining.
From the CVE record · Linux
The Linux kernel’s net/smc code trusts a message length received from the network when draining connection-layer data. If that length exceeds the buffer size, draining can enter an endless loop. The input does not specify authentication or user-interaction requirements.
Engineers running the Linux kernel should check their version against the vendor advisory; affected versions are not specified here.