{"api_version":"1","generated_at":"2026-12-03T13:40:17+00:00","cve":"CVE-2026-143340","urls":{"html":"https://cve.report/CVE-2026-143340","api":"https://cve.report/api/cve/CVE-2026-143340.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143340","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143340"},"summary":{"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.","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/c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd","name":"https://git.kernel.org/stable/c/c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb","name":"https://git.kernel.org/stable/c/7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/263a5514cb9535380734b5e300b298f82570eb57","name":"https://git.kernel.org/stable/c/263a5514cb9535380734b5e300b298f82570eb57","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/137d068cc7d8a95270d96b90addba9ff0f938dfe","name":"https://git.kernel.org/stable/c/137d068cc7d8a95270d96b90addba9ff0f938dfe","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143340","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143340","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 19c6f534f63608fbf966897b2c64fefcb916dc08 7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 19c6f534f63608fbf966897b2c64fefcb916dc08 c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 19c6f534f63608fbf966897b2c64fefcb916dc08 137d068cc7d8a95270d96b90addba9ff0f938dfe git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 19c6f534f63608fbf966897b2c64fefcb916dc08 263a5514cb9535380734b5e300b298f82570eb57 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2 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/microchip/lan966x/lan966x_fdma.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb","status":"affected","version":"19c6f534f63608fbf966897b2c64fefcb916dc08","versionType":"git"},{"lessThan":"c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd","status":"affected","version":"19c6f534f63608fbf966897b2c64fefcb916dc08","versionType":"git"},{"lessThan":"137d068cc7d8a95270d96b90addba9ff0f938dfe","status":"affected","version":"19c6f534f63608fbf966897b2c64fefcb916dc08","versionType":"git"},{"lessThan":"263a5514cb9535380734b5e300b298f82570eb57","status":"affected","version":"19c6f534f63608fbf966897b2c64fefcb916dc08","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.2"},{"lessThan":"6.2","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":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:01.353Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"net: lan966x: don't free XDP buffers in fdma tx clear with budget 0","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143340","datePublished":"2026-12-03T09:22:01.353Z","dateReserved":"2026-12-03T03:10:28.367Z","dateUpdated":"2026-12-03T09:22:01.353Z","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":"143340","Ordinal":"1","Title":"net: lan966x: don't free XDP buffers in fdma tx clear with budge","CVE":"CVE-2026-143340","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143340","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"net: lan966x: don't free XDP buffers in fdma tx clear with budge"}]}}}