diff options
| author | YunJe Shin <yjshin0438@gmail.com> | 2026-02-04 12:24:57 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-02-05 15:46:52 +0300 |
| commit | 14ab3da122bd18920ad57428f6cf4fade8385142 (patch) | |
| tree | fbd57aa671040dedf4ec533b71c656c84cd19be3 /include/uapi/linux/errqueue.h | |
| parent | 5551b02fdbfd85a325bb857f3a8f9c9f33397ed2 (diff) | |
| download | linux-14ab3da122bd18920ad57428f6cf4fade8385142.tar.xz | |
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
Fixes: 8b6a361b8c48 ("rdma/siw: receive path")
Signed-off-by: YunJe Shin <ioerts@kookmin.ac.kr>
Link: https://patch.msgid.link/20260204092546.489842-1-ioerts@kookmin.ac.kr
Acked-by: Bernard Metzler <bernard.metzler@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
