mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 04:39:02 +02:00
TUNSETLINK allows a TUN device to change its link-layer type to
ARPHRD_IEEE802154 without initializing ieee802154_ptr. lowpan_newlink()
checks only the device type before dereferencing the pointer, so an
RTM_NEWLINK request can trigger a NULL pointer dereference.
Reject devices without ieee802154_ptr along with devices of the wrong type.
Fixes:
|
||
|---|---|---|
| .. | ||
| 6lowpan_i.h | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| reassembly.c | ||
| rx.c | ||
| tx.c | ||