PT-2026-167055

CVE-2026-143197

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
tun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLINK
A userspace application can set the link type of a TUN/TAP interface to ARPHRD IEEE802154, ARPHRD IEEE802154 MONITOR, or ARPHRD 6LOWPAN via ioctl(fd, TUNSETLINK, arg) because tun get addr len() explicitly recognized these types.
However, TUN devices cannot function as genuine IEEE 802.15.4 or 6LoWPAN interfaces:
  1. They lack wpan phy, channels, PAN IDs, and MLME operations, and tun never initializes dev->ieee802154 ptr or dev->ml priv. When an unprivileged user creates a TUN interface in a user+net namespace, changes its link type to ARPHRD IEEE802154, and issues a netlink dump request (such as IEEE802154 LLSEC LIST KEY), ieee802154 llsec dump table() unconditionally dereferences dev->ieee802154 ptr / ieee802154 mlme ops(dev), triggering a supervisor null-pointer dereference / general protection fault. Similar dereferences occur across net/ieee802154/nl-phy.c (ieee802154 del iface) and net/ieee802154/socket.c.
  2. Similarly, the 6LoWPAN subsystem assumes via lowpan dev(dev) that netdev priv(dev) is struct lowpan dev. On a TUN device, netdev priv(dev) is struct tun struct. On netdev events (such as NETDEV DOWN in net/6lowpan/core.c:lowpan device event), it clears bits in lowpan dev(dev)->ctx.table flags, which corrupts private memory inside tun struct.
Rather than scattering checks across subsystems, fix the issue at the source: disallow setting ARPHRD IEEE802154, ARPHRD IEEE802154 MONITOR, and ARPHRD 6LOWPAN via TUNSETLINK by returning -EINVAL. Cast arg to unsigned short in the comparison to prevent upper-bit truncation bypasses (e.g. arg = ARPHRD IEEE802154 | 0x10000).
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾