GHSA-2WJR-9H9P-5HVJ

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

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

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143197"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:17:56Z",
    "severity": null
  },
  "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).",
  "id": "GHSA-2wjr-9h9p-5hvj",
  "modified": "2026-12-03T12:31:08Z",
  "published": "2026-12-03T12:31:08Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143197"
    },
    {
      "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"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.