remarkable-linux/net/ieee802154
vegard.nossum@oracle.com 5b3211dcd4 ieee802154: check device type
I've observed a NULL pointer dereference in ieee802154_del_iface() during
netlink fuzzing. It's the ->wpan_phy dereference here:

        phy = dev->ieee802154_ptr->wpan_phy;

My bet is that we're not checking that this is an IEEE802154 interface,
so let's do what ieee802154_nl_get_dev() is doing. (Maybe we should even
be calling this directly?)

Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Alexander Aring <alex.aring@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Sergey Lapin <slapin@ossfans.org>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Acked-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
2016-11-30 12:33:07 +01:00
..
6lowpan ieee802154: 6lowpan: fix intra pan id check 2016-07-08 13:23:12 +02:00
core.c ieee802154: add netns support 2016-07-08 12:20:57 +02:00
core.h ieee802154: add netns support 2016-07-08 12:20:57 +02:00
header_ops.c
ieee802154.h
Kconfig
Makefile
netlink.c genetlink: mark families as __ro_after_init 2016-10-27 16:16:09 -04:00
nl-mac.c ieee802154: use nla_put_u64_64bit() 2016-04-25 15:09:11 -04:00
nl-phy.c ieee802154: check device type 2016-11-30 12:33:07 +01:00
nl802154.c genetlink: mark families as __ro_after_init 2016-10-27 16:16:09 -04:00
nl802154.h
nl_policy.c
rdev-ops.h
socket.c
sysfs.c
sysfs.h
trace.c
trace.h