summaryrefslogtreecommitdiff
path: root/net/ax25
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2018-03-05 08:51:03 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-31 18:12:34 +0200
commit41462e8f610c3b0056e89fbc2a2d1b37416466aa (patch)
tree083405db847139d780f4271fc3fbe4e931c45c97 /net/ax25
parentbd01dd8b1036a6d55247e0a04a09e376c6d4bd9a (diff)
ieee802154: 6lowpan: fix possible NULL deref in lowpan_device_event()
[ Upstream commit ca0edb131bdf1e6beaeb2b8289fd6b374b74147d ] A tun device type can trivially be set to arbitrary value using TUNSETLINK ioctl(). Therefore, lowpan_device_event() must really check that ieee802154_ptr is not NULL. Fixes: 2c88b5283f60d ("ieee802154: 6lowpan: remove check on null") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Alexander Aring <alex.aring@gmail.com> Cc: Stefan Schmidt <stefan@osg.samsung.com> Reported-by: syzbot <syzkaller@googlegroups.com> Acked-by: Stefan Schmidt <stefan@osg.samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions