tun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLINK
Summary
| CVE | CVE-2026-143197 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 10:17:56 UTC |
| Updated | 2026-12-03 10:17:56 UTC |
| 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). |
Risk And Classification
EPSS: 0.002150000 probability, percentile 0.126090000 (date 2026-12-03)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected ff4cc3ac93e1d0369928fd60ec1fe82417afc576 a14e17f92708a235eaef8b1a124c5aa2009f8402 git | Not specified |
| CNA | Linux | Linux | affected ff4cc3ac93e1d0369928fd60ec1fe82417afc576 e02b546a2b73f29a95cbf9ad940cb132153cb1a6 git | Not specified |
| CNA | Linux | Linux | affected ff4cc3ac93e1d0369928fd60ec1fe82417afc576 f85bd794ec1216f949e69d94e81ff6badb8458a7 git | Not specified |
| CNA | Linux | Linux | affected ff4cc3ac93e1d0369928fd60ec1fe82417afc576 39b3b79e44b7c6b46afc396d1dd369795ce14f13 git | Not specified |
| CNA | Linux | Linux | affected ff4cc3ac93e1d0369928fd60ec1fe82417afc576 ff1b1793e879b5f91ffceb575346f5a4bac88118 git | Not specified |
| CNA | Linux | Linux | affected ff4cc3ac93e1d0369928fd60ec1fe82417afc576 968f2b94a5964b75d9c0da84523e42530c1891f0 git | Not specified |
| CNA | Linux | Linux | affected 2.6.14 | Not specified |
| CNA | Linux | Linux | unaffected 2.6.14 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.276 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.227 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.120 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.66 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3.7 7.3.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.4-rc3 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/ff1b1793e879b5f91ffceb575346f5a4bac88118 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/968f2b94a5964b75d9c0da84523e42530c1891f0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/f85bd794ec1216f949e69d94e81ff6badb8458a7 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/39b3b79e44b7c6b46afc396d1dd369795ce14f13 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/a14e17f92708a235eaef8b1a124c5aa2009f8402 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/e02b546a2b73f29a95cbf9ad940cb132153cb1a6 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.