FKIE_CVE-2026-143345

Vulnerability from fkie_nvd - Published: 2026-12-03 10:18 - Updated: 2026-12-03 10:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: drop split frames on AF_XDP zero-copy RX stmmac_rx_zc() assumes a 1:1 mapping between a received frame and an XSK pool buffer and drops any frame that spans more than one RX descriptor: /* XSK pool expects RX frame 1:1 mapped to XSK buffer */ if (likely(status & rx_not_ls)) { xsk_buff_free(buf->xdp); buf->xdp = NULL; dirty++; count++; goto read_again; } The non-last descriptors are freed and dropped, but the frame is not marked as errored. When the poll reaches the last descriptor of the same frame, error is still 0, so the fragment is handled as a complete frame: it is passed to the XDP program, copied into an skb on XDP_PASS, or converted for XDP_TX. The tail starts in the middle of the original payload at a predictable offset and, parsed as a fresh frame (len == 0), stmmac_rx_buf1_len() reports the full dma_buf_sz length for it even though the DMA engine only wrote the tail remainder into that buffer, so the reads extend past the received bytes and can reach beyond the end of the XSK pool buffer. GMAC4 always enables jumbo frames (GMAC_CONFIG_JE in GMAC_CORE_INIT), so an on-link peer can trigger such a split even when the interface MTU is left at 1500. Set error when the 1:1 mapping check drops a descriptor, so the remaining descriptors of the frame - including the last one - are drained and released with xsk_buff_free() instead of being processed as a new frame. Account every freed buffer with dirty and count the dropped frame once in the poll budget / rx_pkt_n. The direct 1:1 mapping drop also increments rx_dropped. Use a bit test instead of an equality test for discard_frame. Commit 644b8437ccef9e ("net: stmmac: dwmac4: report Rx checksum errors in status") made dwmac4_wrback_get_rx_status() set discard_frame on RDES3_ERROR_SUMMARY and OR in csum_none on RDES1_IP_HDR_ERROR or RDES1_IP_PAYLOAD_ERROR, so it can return discard_frame | csum_none. The old "status == discard_frame" test missed that value and delivered frames with CRC, overflow, watchdog or giant errors to the stack in stmmac_rx() - or to XDP/XSK in stmmac_rx_zc() - when they also failed the IP checksum. The change therefore affects the regular RX path, not only zero-copy. The bit test is also required for the discard_frame | rx_not_ls value returned for non-last legacy descriptors below. Normalize the legacy normal and enhanced descriptor callbacks to report rx_not_ls together with discard_frame for non-last descriptors. This allows both stmmac_rx_zc() and stmmac_rx() to drain split frames on dwmac100 and dwmac1000 instead of reparsing the final fragment as a new packet.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/stmicro/stmmac/enh_desc.c",
            "drivers/net/ethernet/stmicro/stmmac/norm_desc.c",
            "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1819eabaf788afeab39b59f8eaef6e6456ad3cb7",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            },
            {
              "lessThan": "8a38519a185099eee65cad26be89d38ed5a7d38d",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            },
            {
              "lessThan": "9c9f4840f79ac076199347197cf75f0736f20a39",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            },
            {
              "lessThan": "834ec95308320cbd8c162d86788ab95cc3fd6bf8",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/stmicro/stmmac/enh_desc.c",
            "drivers/net/ethernet/stmicro/stmmac/norm_desc.c",
            "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.13"
            },
            {
              "lessThan": "5.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.66",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: drop split frames on AF_XDP zero-copy RX\n\nstmmac_rx_zc() assumes a 1:1 mapping between a received frame and an\nXSK pool buffer and drops any frame that spans more than one RX\ndescriptor:\n\n        /* XSK pool expects RX frame 1:1 mapped to XSK buffer */\n        if (likely(status \u0026 rx_not_ls)) {\n                xsk_buff_free(buf-\u003exdp);\n                buf-\u003exdp = NULL;\n                dirty++;\n                count++;\n                goto read_again;\n        }\n\nThe non-last descriptors are freed and dropped, but the frame is not\nmarked as errored. When the poll reaches the last descriptor of the\nsame frame, error is still 0, so the fragment is handled as a complete\nframe: it is passed to the XDP program, copied into an skb on XDP_PASS,\nor converted for XDP_TX. The tail starts in the middle of the original\npayload at a predictable offset and, parsed as a fresh frame (len == 0),\nstmmac_rx_buf1_len() reports the full dma_buf_sz length for it even\nthough the DMA engine only wrote the tail remainder into that buffer, so\nthe reads extend past the received bytes and can reach beyond the end of\nthe XSK pool buffer. GMAC4 always enables jumbo frames (GMAC_CONFIG_JE\nin GMAC_CORE_INIT), so an on-link peer can trigger such a split even\nwhen the interface MTU is left at 1500.\n\nSet error when the 1:1 mapping check drops a descriptor, so the\nremaining descriptors of the frame - including the last one - are\ndrained and released with xsk_buff_free() instead of being processed as\na new frame. Account every freed buffer with dirty and count the\ndropped frame once in the poll budget / rx_pkt_n. The direct 1:1\nmapping drop also increments rx_dropped.\n\nUse a bit test instead of an equality test for discard_frame.\nCommit 644b8437ccef9e (\"net: stmmac: dwmac4: report Rx checksum errors\nin status\") made dwmac4_wrback_get_rx_status() set discard_frame on\nRDES3_ERROR_SUMMARY and OR in csum_none on RDES1_IP_HDR_ERROR or\nRDES1_IP_PAYLOAD_ERROR, so it can return discard_frame | csum_none.\nThe old \"status == discard_frame\" test missed that value and delivered\nframes with CRC, overflow, watchdog or giant errors to the stack in\nstmmac_rx() - or to XDP/XSK in stmmac_rx_zc() - when they also failed\nthe IP checksum. The change therefore affects the regular RX path, not\nonly zero-copy. The bit test is also required for the\ndiscard_frame | rx_not_ls value returned for non-last legacy\ndescriptors below.\n\nNormalize the legacy normal and enhanced descriptor callbacks to report\nrx_not_ls together with discard_frame for non-last descriptors. This\nallows both stmmac_rx_zc() and stmmac_rx() to drain split frames on\ndwmac100 and dwmac1000 instead of reparsing the final fragment as a new\npacket."
    }
  ],
  "id": "CVE-2026-143345",
  "lastModified": "2026-12-03T10:18:23.010",
  "metrics": {},
  "published": "2026-12-03T10:18:23.010",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/1819eabaf788afeab39b59f8eaef6e6456ad3cb7"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/834ec95308320cbd8c162d86788ab95cc3fd6bf8"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/8a38519a185099eee65cad26be89d38ed5a7d38d"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/9c9f4840f79ac076199347197cf75f0736f20a39"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



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.