{"id":"CVE-2026-143197","summary":"tun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLINK","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLINK\n\nA userspace application can set the link type of a TUN/TAP interface\nto ARPHRD_IEEE802154, ARPHRD_IEEE802154_MONITOR, or ARPHRD_6LOWPAN\nvia ioctl(fd, TUNSETLINK, arg) because tun_get_addr_len() explicitly\nrecognized these types.\n\nHowever, TUN devices cannot function as genuine IEEE 802.15.4 or 6LoWPAN\ninterfaces:\n\n1. They lack wpan_phy, channels, PAN IDs, and MLME operations, and tun\n   never initializes dev-\u003eieee802154_ptr or dev-\u003eml_priv. When an\n   unprivileged user creates a TUN interface in a user+net namespace,\n   changes its link type to ARPHRD_IEEE802154, and issues a netlink dump\n   request (such as IEEE802154_LLSEC_LIST_KEY),\n   ieee802154_llsec_dump_table() unconditionally dereferences\n   dev-\u003eieee802154_ptr / ieee802154_mlme_ops(dev), triggering a supervisor\n   null-pointer dereference / general protection fault. Similar\n   dereferences occur across net/ieee802154/nl-phy.c (ieee802154_del_iface)\n   and net/ieee802154/socket.c.\n\n2. Similarly, the 6LoWPAN subsystem assumes via lowpan_dev(dev) that\n   netdev_priv(dev) is struct lowpan_dev. On a TUN device, netdev_priv(dev)\n   is struct tun_struct. On netdev events (such as NETDEV_DOWN in\n   net/6lowpan/core.c:lowpan_device_event), it clears bits in\n   lowpan_dev(dev)-\u003ectx.table flags, which corrupts private memory inside\n   tun_struct.\n\nRather than scattering checks across subsystems, fix the issue at the\nsource: disallow setting ARPHRD_IEEE802154, ARPHRD_IEEE802154_MONITOR, and\nARPHRD_6LOWPAN via TUNSETLINK by returning -EINVAL. Cast arg to unsigned\nshort in the comparison to prevent upper-bit truncation bypasses (e.g.\narg = ARPHRD_IEEE802154 | 0x10000).","modified":"2026-12-03T11:01:38.471399309Z","published":"2026-12-03T09:20:23.753Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143197.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39b3b79e44b7c6b46afc396d1dd369795ce14f13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/968f2b94a5964b75d9c0da84523e42530c1891f0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a14e17f92708a235eaef8b1a124c5aa2009f8402"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e02b546a2b73f29a95cbf9ad940cb132153cb1a6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f85bd794ec1216f949e69d94e81ff6badb8458a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff1b1793e879b5f91ffceb575346f5a4bac88118"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143197.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143197"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ff4cc3ac93e1d0369928fd60ec1fe82417afc576"},{"fixed":"a14e17f92708a235eaef8b1a124c5aa2009f8402"},{"fixed":"e02b546a2b73f29a95cbf9ad940cb132153cb1a6"},{"fixed":"f85bd794ec1216f949e69d94e81ff6badb8458a7"},{"fixed":"39b3b79e44b7c6b46afc396d1dd369795ce14f13"},{"fixed":"ff1b1793e879b5f91ffceb575346f5a4bac88118"},{"fixed":"968f2b94a5964b75d9c0da84523e42530c1891f0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143197.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.14"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143197.json"}}],"schema_version":"1.9.2"}