diff options
| author | [email protected] <[email protected]> | 2016-07-20 10:43:11 +0200 |
|---|---|---|
| committer | Stefan Schmidt <[email protected]> | 2016-11-30 12:33:07 +0100 |
| commit | 5b3211dcd43582c48291e7fc22b2e6d5c7faded5 (patch) | |
| tree | d52a2580b9b4cecdea672f017ef3014d5e88344f /include/linux/timerqueue.h | |
| parent | 1ae6d00ad05730bca283dc09e7a9c162c2f22b01 (diff) | |
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 <[email protected]>
Cc: Alexander Aring <[email protected]>
Cc: Marcel Holtmann <[email protected]>
Cc: Dmitry Eremin-Solenikov <[email protected]>
Cc: Sergey Lapin <[email protected]>
Signed-off-by: Vegard Nossum <[email protected]>
Acked-by: Alexander Aring <[email protected]>
Signed-off-by: Stefan Schmidt <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions