{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5fabb01207a2d3439a6abe1d08640de9c942945f"
            },
            {
              "fixed": "8a116ce0c21449b742d5eb1e80f3f0cc64dca14f"
            },
            {
              "fixed": "bd007ea5aeda66d5c3033bea99cc3864c3f37102"
            },
            {
              "fixed": "68bdbffcae08699af5c16f7a2ec61a5489b78dbe"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143342.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: fix VLAN tag stripping on short and non-linear RX frames\n\nstmmac_rx_vlan() reads the VLAN header straight from skb-\u003edata and\nremoves it with skb_pull(), assuming the header is fully present in the\nlinear part of the skb. XDP can change the frame length and head layout\nbefore the tag is stripped.\n\nAn XDP program can use bpf_xdp_adjust_tail() to shrink a frame to as\nlittle as ETH_HLEN while bytes 12-13 still contain a VLAN ethertype. The\ndriver then reads h_vlan_TCI past skb-\u003elen and pops the tag, leaving less\nthan ETH_HLEN in the skb. eth_type_trans() cannot pull the MAC header, so\na malformed skb is passed up. The TCI is also read from the wrong place\nwhen the tag is not fully in the linear head, e.g. when it spans into a\nfrag.\n\nRead h_vlan_proto after pulling ETH_HLEN into the linear part, and check\nit together with the device features. Only if the tag is actually going\nto be popped, pull VLAN_ETH_HLEN and re-derive the header pointer\nafterwards, as pskb_may_pull() may reallocate the skb head. Return an\nerror so the callers can drop a frame that claims a VLAN tag but cannot\nprovide the full header. This also drops and counts frames shorter than\nETH_HLEN in rx_dropped, even when VLAN RX offload is disabled;\nbpf_xdp_adjust_head() and bpf_xdp_adjust_tail() cannot produce such a\nframe, so it only affects a runt that reaches the driver, and dropping it\nis safer than handing it to eth_type_trans().\n\nAlso move the XDP metadata written with bpf_xdp_adjust_meta() together\nwith the MAC header when the tag is popped, so data_meta still points at\nthe metadata after eth_type_trans() anchors mac_header, instead of at the\nfirst bytes of the destination MAC.",
  "id": "CVE-2026-143342",
  "modified": "2026-12-03T10:45:21.392080732Z",
  "published": "2026-12-03T09:22:02.631Z",
  "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/68bdbffcae08699af5c16f7a2ec61a5489b78dbe"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8a116ce0c21449b742d5eb1e80f3f0cc64dca14f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bd007ea5aeda66d5c3033bea99cc3864c3f37102"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143342.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143342"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "net: stmmac: fix VLAN tag stripping on short and non-linear RX frames"
}