]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Fix potential OOB in tipc_link_proto_rcv()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 3 Dec 2022 09:46:35 +0000 (17:46 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Dec 2022 11:58:38 +0000 (12:58 +0100)
commit743117a997bbd4840e827295c07e59bcd7f7caa3
tree767505b5dc9fe0c1c932beb586351ad031079a8e
parent433c07a13f59856e4585e89e86b7d4cc59348fab
tipc: Fix potential OOB in tipc_link_proto_rcv()

Fix the potential risk of OOB if skb_linearize() fails in
tipc_link_proto_rcv().

Fixes: 5cbb28a4bf65 ("tipc: linearize arriving NAME_DISTR and LINK_PROTO buffers")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20221203094635.29024-1-yuehaibing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/tipc/link.c