{"id":"CVE-2026-143340","state":"PUBLISHED","title":"net: lan966x: don't free XDP buffers in fdma tx clear with budget 0","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: don't free XDP buffers in fdma tx clear with budget 0\n\nlan966x_fdma_tx_clear_buf() runs from the NAPI poll and frees the\nbuffers of completed tx DCBs with napi_consume_skb(),\npage_pool_recycle_direct() and xdp_return_frame_bulk().\n\nnetpoll calls the NAPI poll with a budget of 0 and hardirqs disabled.\nWith a budget of 0, a driver cannot call any XDP or page pool API.\n\nBefore this patch, the XDP_TX pages and ndo_xdp_xmit frames are freed\nregardless of the budget. With netconsole on the port that owns the\nFDMA NAPI, such a buffer is freed with hardirqs disabled, and\n__page_pool_put_page() warns via lockdep_assert_no_hardirq().\n\nLeave the XDP buffers of completed DCBs in place when the budget is 0,\nand free them in the next NAPI poll. napi_consume_skb() already handles\na budget of 0, so skbs are still freed.\n\nFound by an AI code review agent. Reproduced on a lan9668 board with a\nmodified kernel that runs the NAPI poll with a budget of 0 and hardirqs\ndisabled. With the fix the warning is gone.","publishedAt":"2026-12-03T09:22:01.353Z","updatedAt":"2026-12-03T09:22:01.353Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb","versionType":"git"},{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd","versionType":"git"},{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"137d068cc7d8a95270d96b90addba9ff0f938dfe","versionType":"git"},{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"263a5514cb9535380734b5e300b298f82570eb57","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]}],"references":["https://git.kernel.org/stable/c/7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb","https://git.kernel.org/stable/c/c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd","https://git.kernel.org/stable/c/137d068cc7d8a95270d96b90addba9ff0f938dfe","https://git.kernel.org/stable/c/263a5514cb9535380734b5e300b298f82570eb57"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143340.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143340","state":"PUBLISHED","datePublished":"2026-12-03T09:22:01.353Z","dateUpdated":"2026-12-03T09:22:01.353Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.367Z"},"containers":{"cna":{"title":"net: lan966x: don't free XDP buffers in fdma tx clear with budget 0","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: don't free XDP buffers in fdma tx clear with budget 0\n\nlan966x_fdma_tx_clear_buf() runs from the NAPI poll and frees the\nbuffers of completed tx DCBs with napi_consume_skb(),\npage_pool_recycle_direct() and xdp_return_frame_bulk().\n\nnetpoll calls the NAPI poll with a budget of 0 and hardirqs disabled.\nWith a budget of 0, a driver cannot call any XDP or page pool API.\n\nBefore this patch, the XDP_TX pages and ndo_xdp_xmit frames are freed\nregardless of the budget. With netconsole on the port that owns the\nFDMA NAPI, such a buffer is freed with hardirqs disabled, and\n__page_pool_put_page() warns via lockdep_assert_no_hardirq().\n\nLeave the XDP buffers of completed DCBs in place when the budget is 0,\nand free them in the next NAPI poll. napi_consume_skb() already handles\na budget of 0, so skbs are still freed.\n\nFound by an AI code review agent. Reproduced on a lan9668 board with a\nmodified kernel that runs the NAPI poll with a budget of 0 and hardirqs\ndisabled. With the fix the warning is gone."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb","versionType":"git"},{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd","versionType":"git"},{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"137d068cc7d8a95270d96b90addba9ff0f938dfe","versionType":"git"},{"version":"19c6f534f63608fbf966897b2c64fefcb916dc08","status":"affected","lessThan":"263a5514cb9535380734b5e300b298f82570eb57","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb"},{"url":"https://git.kernel.org/stable/c/c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd"},{"url":"https://git.kernel.org/stable/c/137d068cc7d8a95270d96b90addba9ff0f938dfe"},{"url":"https://git.kernel.org/stable/c/263a5514cb9535380734b5e300b298f82570eb57"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:01.353Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}