ieee802154: 6lowpan: fix NULL dereference in lowpan_newlink
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 51e0e5d8124ece158927a4c2288c0929d3b53aa3 · < 98ce5a42cde780ee0e40378607d4428c8fc12ec1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ieee802154: 6lowpan: fix NULL dereference in lowpan_newlink
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.
From the CVE record · Linux
The Linux kernel’s 6LoWPAN link creation code can dereference a NULL pointer when a TUN device is changed to the IEEE 802.15.4 link-layer type without initializing ieee802154_ptr. A local user able to make that TUN configuration change and send an RTM_NEWLINK request can trigger the dereference; the input does not specify the required privileges.
Engineers running the Linux kernel should check whether their kernel includes this fix; affected versions are not specified.