{"api_version":"1","generated_at":"2026-12-03T16:09:28+00:00","cve":"CVE-2026-143346","urls":{"html":"https://cve.report/CVE-2026-143346","api":"https://cve.report/api/cve/CVE-2026-143346.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143346","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143346"},"summary":{"title":"net: stmmac: take ownership of saved RX state at poll entry","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: take ownership of saved RX state at poll entry\n\nWhen a saved partial packet completes with a poll budget of one, the\nold loop can leave state_saved and state.skb pointing at an skb that\nhas already been delivered or freed. The next poll then reuses that\npointer, causing a use-after-free or double free.\n\nTake the saved state at poll entry and clear the stored ownership\nimmediately. Save it again only if the packet remains incomplete,\nincluding when the next descriptor is still DMA-owned.\n\nTrack the frame-in-progress flag independently of the status read from\nthe next descriptor. The old code keyed the save on the status of the\nlast descriptor looked at, so a loop stopped at a DMA-owned descriptor\n(rx status not yet valid) could drop the saved error/length bookkeeping\nin stmmac_rx_zc().\n\nDrop the saved state both when the queue parameters are reset and when\nthe ring is destroyed. stmmac_reset_rx_queue() is reached from\n__stmmac_open(), stmmac_xdp_open(), stmmac_resume() and\nstmmac_enable_rx_queue(); without draining it there, a partial frame\nsaved before suspend (or before a queue is disabled and re-enabled)\nsurvives while cur_rx and dirty_rx are rewound to zero. On the resume\npath the ring is only re-armed in place: stmmac_clear_descriptors()\nsets the ownership bits and stmmac_init_dma_engine() restores the tail\npointer, but the RX buffer addresses are not reprogrammed. The first\npoll would then resume the stale skb against a ring position that no\nlonger matches the descriptors it was built from.\n__free_dma_rx_desc_resources() releases it on teardown.\n\nApply the same state handling to stmmac_rx_zc(), which also leaves\nstate_saved set when a saved frame finishes at the budget boundary.\nThat path saves only error and length bookkeeping, not an skb pointer.","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/e0abe47f4db994354d5b8d54fc20540cdd13258c","name":"https://git.kernel.org/stable/c/e0abe47f4db994354d5b8d54fc20540cdd13258c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/26219e9402c22181f021034f127a8e278d40545f","name":"https://git.kernel.org/stable/c/26219e9402c22181f021034f127a8e278d40545f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f28cacf31e8a344b2f451a48bb1d21be94c435bd","name":"https://git.kernel.org/stable/c/f28cacf31e8a344b2f451a48bb1d21be94c435bd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143346","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143346","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ec222003bd948de8f3ffbca522d328af1a8452ad f28cacf31e8a344b2f451a48bb1d21be94c435bd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ec222003bd948de8f3ffbca522d328af1a8452ad e0abe47f4db994354d5b8d54fc20540cdd13258c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ec222003bd948de8f3ffbca522d328af1a8452ad 26219e9402c22181f021034f127a8e278d40545f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4 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":"f28cacf31e8a344b2f451a48bb1d21be94c435bd","status":"affected","version":"ec222003bd948de8f3ffbca522d328af1a8452ad","versionType":"git"},{"lessThan":"e0abe47f4db994354d5b8d54fc20540cdd13258c","status":"affected","version":"ec222003bd948de8f3ffbca522d328af1a8452ad","versionType":"git"},{"lessThan":"26219e9402c22181f021034f127a8e278d40545f","status":"affected","version":"ec222003bd948de8f3ffbca522d328af1a8452ad","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.4"},{"lessThan":"5.4","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.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: take ownership of saved RX state at poll entry\n\nWhen a saved partial packet completes with a poll budget of one, the\nold loop can leave state_saved and state.skb pointing at an skb that\nhas already been delivered or freed. The next poll then reuses that\npointer, causing a use-after-free or double free.\n\nTake the saved state at poll entry and clear the stored ownership\nimmediately. Save it again only if the packet remains incomplete,\nincluding when the next descriptor is still DMA-owned.\n\nTrack the frame-in-progress flag independently of the status read from\nthe next descriptor. The old code keyed the save on the status of the\nlast descriptor looked at, so a loop stopped at a DMA-owned descriptor\n(rx status not yet valid) could drop the saved error/length bookkeeping\nin stmmac_rx_zc().\n\nDrop the saved state both when the queue parameters are reset and when\nthe ring is destroyed. stmmac_reset_rx_queue() is reached from\n__stmmac_open(), stmmac_xdp_open(), stmmac_resume() and\nstmmac_enable_rx_queue(); without draining it there, a partial frame\nsaved before suspend (or before a queue is disabled and re-enabled)\nsurvives while cur_rx and dirty_rx are rewound to zero. On the resume\npath the ring is only re-armed in place: stmmac_clear_descriptors()\nsets the ownership bits and stmmac_init_dma_engine() restores the tail\npointer, but the RX buffer addresses are not reprogrammed. The first\npoll would then resume the stale skb against a ring position that no\nlonger matches the descriptors it was built from.\n__free_dma_rx_desc_resources() releases it on teardown.\n\nApply the same state handling to stmmac_rx_zc(), which also leaves\nstate_saved set when a saved frame finishes at the budget boundary.\nThat path saves only error and length bookkeeping, not an skb pointer."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:05.163Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/f28cacf31e8a344b2f451a48bb1d21be94c435bd"},{"url":"https://git.kernel.org/stable/c/e0abe47f4db994354d5b8d54fc20540cdd13258c"},{"url":"https://git.kernel.org/stable/c/26219e9402c22181f021034f127a8e278d40545f"}],"title":"net: stmmac: take ownership of saved RX state at poll entry","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143346","datePublished":"2026-12-03T09:22:05.163Z","dateReserved":"2026-12-03T03:10:28.368Z","dateUpdated":"2026-12-03T09:22:05.163Z","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":"143346","Ordinal":"1","Title":"net: stmmac: take ownership of saved RX state at poll entry","CVE":"CVE-2026-143346","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143346","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: take ownership of saved RX state at poll entry\n\nWhen a saved partial packet completes with a poll budget of one, the\nold loop can leave state_saved and state.skb pointing at an skb that\nhas already been delivered or freed. The next poll then reuses that\npointer, causing a use-after-free or double free.\n\nTake the saved state at poll entry and clear the stored ownership\nimmediately. Save it again only if the packet remains incomplete,\nincluding when the next descriptor is still DMA-owned.\n\nTrack the frame-in-progress flag independently of the status read from\nthe next descriptor. The old code keyed the save on the status of the\nlast descriptor looked at, so a loop stopped at a DMA-owned descriptor\n(rx status not yet valid) could drop the saved error/length bookkeeping\nin stmmac_rx_zc().\n\nDrop the saved state both when the queue parameters are reset and when\nthe ring is destroyed. stmmac_reset_rx_queue() is reached from\n__stmmac_open(), stmmac_xdp_open(), stmmac_resume() and\nstmmac_enable_rx_queue(); without draining it there, a partial frame\nsaved before suspend (or before a queue is disabled and re-enabled)\nsurvives while cur_rx and dirty_rx are rewound to zero. On the resume\npath the ring is only re-armed in place: stmmac_clear_descriptors()\nsets the ownership bits and stmmac_init_dma_engine() restores the tail\npointer, but the RX buffer addresses are not reprogrammed. The first\npoll would then resume the stale skb against a ring position that no\nlonger matches the descriptors it was built from.\n__free_dma_rx_desc_resources() releases it on teardown.\n\nApply the same state handling to stmmac_rx_zc(), which also leaves\nstate_saved set when a saved frame finishes at the budget boundary.\nThat path saves only error and length bookkeeping, not an skb pointer.","Type":"Description","Title":"net: stmmac: take ownership of saved RX state at poll entry"}]}}}