]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: ip6t_srh: fix NULL pointer dereferences
authorKangjie Lu <kjlu@umn.edu>
Thu, 14 Mar 2019 07:58:18 +0000 (02:58 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 18 Mar 2019 15:22:48 +0000 (16:22 +0100)
commit6d65561f3d5ec933151939c543d006b79044e7a6
treebfcad87e4a205701eff3744cedc290a6d7649113
parentd1fa381033eb718df5c602f64b6e88676138dfc6
netfilter: ip6t_srh: fix NULL pointer dereferences

skb_header_pointer may return NULL. The current code dereference
its return values without a NULL check.

The fix inserts the checks to avoid NULL pointer dereferences.

Fixes: 202a8ff545cc ("netfilter: add IPv6 segment routing header 'srh' match")
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/ip6t_srh.c