{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5fabb01207a2d3439a6abe1d08640de9c942945f"
            },
            {
              "fixed": "ffa7563878f8a52390ea50a3994df0d2a588ae0b"
            },
            {
              "fixed": "10f01285eb9db4a92ecb927273dd332e217265ac"
            },
            {
              "fixed": "52ffd771e0029c5ad0504b1b4a8b7f932b65eea3"
            }
          ],
          "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-143344.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: drop multi-buffer frames in XDP mode\n\nstmmac_rx() runs the XDP program once per descriptor buffer and uses\nskb == NULL as the only marker for the start of a frame. A frame larger\nthan one buffer is split by the hardware across several descriptors;\nGMAC4 enables jumbo frames unconditionally (GMAC_CONFIG_JE in\nGMAC_CORE_INIT), so an on-link peer can deliver such a frame even when\nthe interface MTU is left at 1500.\n\nWhen an XDP verdict ends a non-last descriptor, skb is cleared and the\nnext descriptor of the same hardware frame is parsed as a new frame.\nFor XDP_CONSUMED this happens via read_again with len preserved, so\nstmmac_rx_buf1_len() then returns min(dma_buf_sz, plen - len) for the\nlast descriptor, which can be as small as 0-3 bytes. buf1_len -=\nETH_FCS_LEN underflows and xdp_prepare_buff() puts data_end far past\ndata; on XDP_PASS this produces an skb whose length is close to 4G that\nreaches the network stack (skb-\u003etail and skb-\u003elen are 32-bit and wrap\nbelow skb-\u003eend, so skb_over_panic() does not fire). A 4+ byte tail is\ninstead offered to the XDP program and delivered as a standalone\nmid-payload Ethernet frame on XDP_PASS. XDP_TX/XDP_REDIRECT instead\nfalls through to the next iteration, resetting the running length, so\nthe tail is re-parsed as a full-size new frame.\n\nThe same fault exists when a single descriptor uses its second buffer:\nbuffer2 is now handed to the hardware for non-SPH frames on GMAC4/XGMAC,\nso a frame up to 2 * dma_buf_sz can land on a single descriptor while the\nXDP program still only sees the first buffer. XDP_TX then transmits a\ntruncated frame, and XDP_PASS appends the second buffer only after the\nprogram has already run over the first one.\n\nXDP does not support scatter-gather frames until the multi-buffer\nrework, so drop the whole frame instead. When a non-last descriptor is\nseen while an XDP program is attached, mark the frame as errored and\ndrain the remaining descriptors, including the last. A descriptor that\nuses its second buffer is dropped directly before the program runs as\nwell; in XDP mode it is necessarily the last descriptor of the frame,\nso it does not need the error marker. Removing the re-parse lets both\nXDP verdict branches simply complete the packet via next.\n\nThe buffers consumed by the discard path are no longer returned to the\npage pool, and the new SG and second-buffer drops do not return them\neither. They stay in rx_q-\u003ebuf_pool[] and stmmac_rx_refill() reuses them\nin place, allocating only when a slot is empty. This is safe because the\ndrop checks run before the buffer is synced for CPU access or\nprefetched. The discard-path change and the in-place reuse apply with or\nwithout an XDP program attached.\n\nThe !error guard on the discard check also changes the accounting for\nerrored multi-descriptor frames on dwmac100/dwmac1000: rx_errors is\nincremented once per frame instead of once per descriptor. This too is\nindependent of XDP mode.\n\nNote: the subsequent \"net: stmmac: rework stmmac_rx to support XDP rx\nmulti-buff\" accumulates the whole frame into a single xdp_buff and\nsupersedes this patch; the fix is kept so the net portion of the series\nstands on its own.",
  "id": "CVE-2026-143344",
  "modified": "2026-12-03T10:45:58.299196142Z",
  "published": "2026-12-03T09:22:03.891Z",
  "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/10f01285eb9db4a92ecb927273dd332e217265ac"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/52ffd771e0029c5ad0504b1b4a8b7f932b65eea3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ffa7563878f8a52390ea50a3994df0d2a588ae0b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143344.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143344"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "net: stmmac: drop multi-buffer frames in XDP mode"
}