CVE-2026-143197

Not scored yetLast modified Dec 3, 2026

Description

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).

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143198In the Linux kernel, the following vulnerability has been resolved: net: ena: Keep the RX buffer mapped if skb allocation fails We are seeCVE-2026-143199In the Linux kernel, the following vulnerability has been resolved: tcp: Drop any segments if DEFER_CONNECT is set. TCP Fast Open lets a cCVE-2026-14329.3SQL injection vulnerability in the Buroweb platform version 2505.0.12, specifically in the 'tablon' component. This vulnerability is presentCVE-2026-143200In the Linux kernel, the following vulnerability has been resolved: erofs: reset buf->off in erofs_init_metabuf() erofs_init_metabuf() setCVE-2026-143201In the Linux kernel, the following vulnerability has been resolved: net: gro: compare skb->protocol in gro_list_prepare() gro_list_prepareCVE-2026-143202In the Linux kernel, the following vulnerability has been resolved: udp: do not use a cross-family sk_rx_dst in early demux A dual-stack UCVE-2026-143203In the Linux kernel, the following vulnerability has been resolved: tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPCVE-2026-143204In the Linux kernel, the following vulnerability has been resolved: tcp: Do not allow buggy transitions between ehash and lhash2. The follCVE-2026-143205In the Linux kernel, the following vulnerability has been resolved: fou: gue: check IP version of held packets for direct IP encapsulation CVE-2026-143206In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Block E-Switch mode changes during IPsec state creation mlxCVE-2026-143207In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Block E-Switch mode changes during IPsec policy creation EsCVE-2026-143208In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix ipsec core device access during profile changes Devlink
CVE-2026-143197: Unscored | Vulnix