AZL-118610: CVE-2026-143340 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
net: lan966x: don't free XDP buffers in fdma tx clear with budget 0
lan966xfdmatxclearbuf() runs from the NAPI poll and frees the buffers of completed tx DCBs with napiconsumeskb(), pagepoolrecycledirect() and xdpreturnframebulk().
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 XDPTX pages and ndoxdpxmit 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 pagepoolputpage() warns via lockdepassertnohardirq().
Leave the XDP buffers of completed DCBs in place when the budget is 0, and free them in the next NAPI poll. napiconsumeskb() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the lan966x FDMA transmit cleanup, when the NAPI budget is 0, leave XDP buffers for completed transmit DCBs in place and free them during the next NAPI poll; continue freeing skbs with napi_consume_skb().
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the lan966x network driver are relevant. The reported trigger involves netconsole configured on the port that owns the FDMA NAPI context and XDP or page-pool buffer handling on that path.
What conditions are needed to trigger the warning?
netpoll must invoke the driver's NAPI poll with a budget of 0 while hard interrupts are disabled. Before the fix, completed XDP_TX pages or ndo_xdp_xmit frames could be returned through XDP or page-pool APIs in that context.
Does this affect ordinary packet cleanup when the NAPI budget is zero?
SKB cleanup is not the problem: napi_consume_skb() already supports a budget of 0, so SKBs can still be freed. The affected cleanup is specifically for XDP and page-pool-backed buffers, which should be deferred until a later NAPI poll with a nonzero budget.
How can administrators identify a potentially affected system?
Check whether the system uses the lan966x driver and has netconsole on its FDMA NAPI-owned port. On an affected kernel, the condition may produce a lockdep warning from __page_pool_put_page() indicating that a page-pool buffer was returned while hard interrupts were disabled.