{"api_version":"1","generated_at":"2026-12-03T16:09:28+00:00","cve":"CVE-2026-143345","urls":{"html":"https://cve.report/CVE-2026-143345","api":"https://cve.report/api/cve/CVE-2026-143345.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143345","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143345"},"summary":{"title":"net: stmmac: drop split frames on AF_XDP zero-copy RX","description":"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 & rx_not_ls)) {\n                xsk_buff_free(buf->xdp);\n                buf->xdp = 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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:23","updated_at":"2026-12-03 10:18:23"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/8a38519a185099eee65cad26be89d38ed5a7d38d","name":"https://git.kernel.org/stable/c/8a38519a185099eee65cad26be89d38ed5a7d38d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9c9f4840f79ac076199347197cf75f0736f20a39","name":"https://git.kernel.org/stable/c/9c9f4840f79ac076199347197cf75f0736f20a39","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/834ec95308320cbd8c162d86788ab95cc3fd6bf8","name":"https://git.kernel.org/stable/c/834ec95308320cbd8c162d86788ab95cc3fd6bf8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1819eabaf788afeab39b59f8eaef6e6456ad3cb7","name":"https://git.kernel.org/stable/c/1819eabaf788afeab39b59f8eaef6e6456ad3cb7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143345","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143345","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bba2556efad66e7eaa56fece13f7708caa1187f8 1819eabaf788afeab39b59f8eaef6e6456ad3cb7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bba2556efad66e7eaa56fece13f7708caa1187f8 8a38519a185099eee65cad26be89d38ed5a7d38d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bba2556efad66e7eaa56fece13f7708caa1187f8 9c9f4840f79ac076199347197cf75f0736f20a39 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bba2556efad66e7eaa56fece13f7708caa1187f8 834ec95308320cbd8c162d86788ab95cc3fd6bf8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"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"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"5.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"5.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"5.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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 & rx_not_ls)) {\n                xsk_buff_free(buf->xdp);\n                buf->xdp = 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."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:04.520Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1819eabaf788afeab39b59f8eaef6e6456ad3cb7"},{"url":"https://git.kernel.org/stable/c/8a38519a185099eee65cad26be89d38ed5a7d38d"},{"url":"https://git.kernel.org/stable/c/9c9f4840f79ac076199347197cf75f0736f20a39"},{"url":"https://git.kernel.org/stable/c/834ec95308320cbd8c162d86788ab95cc3fd6bf8"}],"title":"net: stmmac: drop split frames on AF_XDP zero-copy RX","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143345","datePublished":"2026-12-03T09:22:04.520Z","dateReserved":"2026-12-03T03:10:28.368Z","dateUpdated":"2026-12-03T09:22:04.520Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:23","lastModifiedDate":"2026-12-03 10:18:23","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143345","Ordinal":"1","Title":"net: stmmac: drop split frames on AF_XDP zero-copy RX","CVE":"CVE-2026-143345","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143345","Ordinal":"1","NoteData":"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 & rx_not_ls)) {\n                xsk_buff_free(buf->xdp);\n                buf->xdp = 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.","Type":"Description","Title":"net: stmmac: drop split frames on AF_XDP zero-copy RX"}]}}}