RDMA/siw: Bound fragmented header copies by the remaining length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 754209850df8367c954ac1de7671c7430b1f342c · < b72dcfb9bf1f0f0147cda03dc59e4002a315067f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/siw: Bound fragmented header copies by the remaining length
siw_get_hdr() can receive an extended DDP/RDMAP header across more than one TCP callback. The first callback may receive most of the header, while the next one still limits the copy to hdrlen - MIN_DDP_HDR instead of the number of missing bytes. This makes the destination move past the end of the header and overwrite the receive state, including fpdu_part_rcvd. A later callback can then use a negative fpdu_part_rcvd value as a copy offset, which creates an OOB write.
Use the number of header bytes already received when calculating the next copy length.
From the CVE record · Linux
The Linux kernel's RDMA/siw header handling is vulnerable when an extended DDP/RDMAP header arrives across multiple TCP callbacks. A network sender can trigger a receive-state overwrite that may lead to an out-of-bounds write. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with RDMA/siw should check their versions against the vendor advisory; affected versions are not specified.