{"api_version":"1","generated_at":"2026-12-03T13:40:17+00:00","cve":"CVE-2026-143341","urls":{"html":"https://cve.report/CVE-2026-143341","api":"https://cve.report/api/cve/CVE-2026-143341.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143341","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143341"},"summary":{"title":"net: stmmac: fix XDP RX buffer DMA sync length","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: fix XDP RX buffer DMA sync length\n\nstmmac_rx() bounded the DMA sync length by the largest data_end seen\nbefore and after the XDP program and passed it to page_pool_put_page()\non the XDP_CONSUMED path. bpf_xdp_adjust_tail() zeroes the grown area,\nwhich dirties the CPU cache, but a later negative adjust only moves\ndata_end back. If the program grows and then shrinks the tail, both\nendpoints miss the zeroed range, so those dirty cache lines are not\nwritten back before the page is reused.\n\nThe length was also wrong since commit 88095728511e (\"net: stmmac: fix\nrx Scatter-Gather support\") moved the page_pool DMA window to offset 0\nand set max_len to dma_buf_sz + page_offset: the driver still\nsubtracted buf->page_offset, so it synced [base, data_end - page_offset)\ninstead of [base, data_end).\n\nOn a non-coherent platform those dirty lines can be evicted after the\ndevice has DMA'd the next frame into the recycled page and corrupt it.\n\nSync the whole page_pool DMA window on the XDP_CONSUMED path with\npage_pool_recycle_direct(), as the PASS path and page_pool allocation\nalready do. The device only writes [page_offset, page_offset +\ndma_buf_sz), so syncing [base, base + max_len) covers every cache line\nit can touch, regardless of how the program adjusted the packet.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:22","updated_at":"2026-12-03 10:18:22"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/7cc35170975c30596dd52a97db0d3c1db21403e6","name":"https://git.kernel.org/stable/c/7cc35170975c30596dd52a97db0d3c1db21403e6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/387f9d83dba3404c010500beb8e9555ad7d812bb","name":"https://git.kernel.org/stable/c/387f9d83dba3404c010500beb8e9555ad7d812bb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/363ff816277d4c7064514b160e655bed1dfb3ed8","name":"https://git.kernel.org/stable/c/363ff816277d4c7064514b160e655bed1dfb3ed8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143341","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143341","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected be8b38a722e68ffa069b7dfa887369c33d6ea886 387f9d83dba3404c010500beb8e9555ad7d812bb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected be8b38a722e68ffa069b7dfa887369c33d6ea886 7cc35170975c30596dd52a97db0d3c1db21403e6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected be8b38a722e68ffa069b7dfa887369c33d6ea886 363ff816277d4c7064514b160e655bed1dfb3ed8 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.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/stmmac_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"387f9d83dba3404c010500beb8e9555ad7d812bb","status":"affected","version":"be8b38a722e68ffa069b7dfa887369c33d6ea886","versionType":"git"},{"lessThan":"7cc35170975c30596dd52a97db0d3c1db21403e6","status":"affected","version":"be8b38a722e68ffa069b7dfa887369c33d6ea886","versionType":"git"},{"lessThan":"363ff816277d4c7064514b160e655bed1dfb3ed8","status":"affected","version":"be8b38a722e68ffa069b7dfa887369c33d6ea886","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["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.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.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: fix XDP RX buffer DMA sync length\n\nstmmac_rx() bounded the DMA sync length by the largest data_end seen\nbefore and after the XDP program and passed it to page_pool_put_page()\non the XDP_CONSUMED path. bpf_xdp_adjust_tail() zeroes the grown area,\nwhich dirties the CPU cache, but a later negative adjust only moves\ndata_end back. If the program grows and then shrinks the tail, both\nendpoints miss the zeroed range, so those dirty cache lines are not\nwritten back before the page is reused.\n\nThe length was also wrong since commit 88095728511e (\"net: stmmac: fix\nrx Scatter-Gather support\") moved the page_pool DMA window to offset 0\nand set max_len to dma_buf_sz + page_offset: the driver still\nsubtracted buf->page_offset, so it synced [base, data_end - page_offset)\ninstead of [base, data_end).\n\nOn a non-coherent platform those dirty lines can be evicted after the\ndevice has DMA'd the next frame into the recycled page and corrupt it.\n\nSync the whole page_pool DMA window on the XDP_CONSUMED path with\npage_pool_recycle_direct(), as the PASS path and page_pool allocation\nalready do. The device only writes [page_offset, page_offset +\ndma_buf_sz), so syncing [base, base + max_len) covers every cache line\nit can touch, regardless of how the program adjusted the packet."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:01.991Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/387f9d83dba3404c010500beb8e9555ad7d812bb"},{"url":"https://git.kernel.org/stable/c/7cc35170975c30596dd52a97db0d3c1db21403e6"},{"url":"https://git.kernel.org/stable/c/363ff816277d4c7064514b160e655bed1dfb3ed8"}],"title":"net: stmmac: fix XDP RX buffer DMA sync length","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143341","datePublished":"2026-12-03T09:22:01.991Z","dateReserved":"2026-12-03T03:10:28.367Z","dateUpdated":"2026-12-03T09:22:01.991Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:22","lastModifiedDate":"2026-12-03 10:18:22","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143341","Ordinal":"1","Title":"net: stmmac: fix XDP RX buffer DMA sync length","CVE":"CVE-2026-143341","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143341","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: fix XDP RX buffer DMA sync length\n\nstmmac_rx() bounded the DMA sync length by the largest data_end seen\nbefore and after the XDP program and passed it to page_pool_put_page()\non the XDP_CONSUMED path. bpf_xdp_adjust_tail() zeroes the grown area,\nwhich dirties the CPU cache, but a later negative adjust only moves\ndata_end back. If the program grows and then shrinks the tail, both\nendpoints miss the zeroed range, so those dirty cache lines are not\nwritten back before the page is reused.\n\nThe length was also wrong since commit 88095728511e (\"net: stmmac: fix\nrx Scatter-Gather support\") moved the page_pool DMA window to offset 0\nand set max_len to dma_buf_sz + page_offset: the driver still\nsubtracted buf->page_offset, so it synced [base, data_end - page_offset)\ninstead of [base, data_end).\n\nOn a non-coherent platform those dirty lines can be evicted after the\ndevice has DMA'd the next frame into the recycled page and corrupt it.\n\nSync the whole page_pool DMA window on the XDP_CONSUMED path with\npage_pool_recycle_direct(), as the PASS path and page_pool allocation\nalready do. The device only writes [page_offset, page_offset +\ndma_buf_sz), so syncing [base, base + max_len) covers every cache line\nit can touch, regardless of how the program adjusted the packet.","Type":"Description","Title":"net: stmmac: fix XDP RX buffer DMA sync length"}]}}}