mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00: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:
|
History
|
|
|---|---|---|
| .. | ||
| 6lowpan_i.h | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| reassembly.c | ||
| rx.c | ||
| tx.c | ||