summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorSriram Yagnaraman <sriram.yagnaraman@est.tech>2023-01-24 02:47:19 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-01-24 09:52:31 +0100
commit98ee0077452527f971567db01386de3c3d97ce13 (patch)
tree91074667060b4febeede75b74d4691da5b5d45c2 /include/uapi
parenta9993591fa94246b16b444eea55d84c54608282a (diff)
downloadlinux-98ee0077452527f971567db01386de3c3d97ce13.tar.bz2
netfilter: conntrack: fix bug in for_each_sctp_chunk
skb_header_pointer() will return NULL if offset + sizeof(_sch) exceeds skb->len, so this offset < skb->len test is redundant. if sch->length == 0, this will end up in an infinite loop, add a check for sch->length > 0 Fixes: 9fb9cbb1082d ("[NETFILTER]: Add nf_conntrack subsystem.") Suggested-by: Florian Westphal <fw@strlen.de> Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions