RDMA/siw: Fix potential NULL pointer dereference in header processing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8b6a361b8c482f22ac99c3273285ff16b23fba91 · < 714c99e1dc8f85f446e05be02ba83972e981a817| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/siw: Fix potential NULL pointer dereference in header processing
If siw_get_hdr() returns -EINVAL before set_rx_fpdu_context(), qp->rx_fpdu can be NULL. The error path in siw_tcp_rx_data() dereferences qp->rx_fpdu->more_ddp_segs without checking, which may lead to a NULL pointer deref. Only check more_ddp_segs when rx_fpdu is present.
KASAN splat: [ 101.384271] KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7] [ 101.385869] RIP: 0010:siw_tcp_rx_data+0x13ad/0x1e50
From the CVE record · Linux
In the Linux kernel’s RDMA/siw TCP receive path, an invalid header can cause siw_get_hdr() to return before the receive context is set. The error path may then dereference a NULL pointer; the input does not establish whether an attacker can trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with RDMA/siw should check their versions against the vendor advisory; affected versions were not provided.