summaryrefslogtreecommitdiff
path: root/kernel/notifier.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-06-24 13:07:20 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-24 22:42:57 +0300
commit624085a31c1ad6a80b1e53f686bf6ee92abbf6e8 (patch)
treeb03f714aab2751866be7f7eac9e853a284a559ca /kernel/notifier.c
parentd9b6d26f6569d3ff748f6ba7a9ea3929abe5a17e (diff)
downloadlinux-624085a31c1ad6a80b1e53f686bf6ee92abbf6e8.tar.xz
ipv6: fix out-of-bound access in ip6_parse_tlv()
First problem is that optlen is fetched without checking there is more than one byte to parse. Fix this by taking care of IPV6_TLV_PAD1 before fetching optlen (under appropriate sanity checks against len) Second problem is that IPV6_TLV_PADN checks of zero padding are performed before the check of remaining length. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Fixes: c1412fce7ecc ("net/ipv6/exthdrs.c: Strict PadN option checking") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/notifier.c')
0 files changed, 0 insertions, 0 deletions