CVE-2026-143340

Source
https://cve.org/CVERecord?id=CVE-2026-143340
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143340.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143340
Downstream
Published
2026-12-03T09:22:01Z
Modified
2026-12-03T11:02:06Z
Summary
net: lan966x: don't free XDP buffers in fdma tx clear with budget 0
Details

In the Linux kernel, the following vulnerability has been resolved:

net: lan966x: don't free XDP buffers in fdma tx clear with budget 0

lan966x_fdma_tx_clear_buf() runs from the NAPI poll and frees the buffers of completed tx DCBs with napi_consume_skb(), page_pool_recycle_direct() and xdp_return_frame_bulk().

netpoll calls the NAPI poll with a budget of 0 and hardirqs disabled. With a budget of 0, a driver cannot call any XDP or page pool API.

Before this patch, the XDP_TX pages and ndo_xdp_xmit frames are freed regardless of the budget. With netconsole on the port that owns the FDMA NAPI, such a buffer is freed with hardirqs disabled, and __page_pool_put_page() warns via lockdep_assert_no_hardirq().

Leave the XDP buffers of completed DCBs in place when the budget is 0, and free them in the next NAPI poll. napi_consume_skb() already handles a budget of 0, so skbs are still freed.

Found by an AI code review agent. Reproduced on a lan9668 board with a modified kernel that runs the NAPI poll with a budget of 0 and hardirqs disabled. With the fix the warning is gone.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143340.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
19c6f534f63608fbf966897b2c64fefcb916dc08
Fixed
7e86d6a8aba86ed6adbf2c54ee16dba52df14fcb
Fixed
c04d9b1cbf2ae04eeb25e4ad1ff6fe018e28cbfd
Fixed
137d068cc7d8a95270d96b90addba9ff0f938dfe
Fixed
263a5514cb9535380734b5e300b298f82570eb57

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143340.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143340.json"