AZL-118613: CVE-2026-143341 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
net: stmmac: fix XDP RX buffer DMA sync length
stmmacrx() bounded the DMA sync length by the largest dataend seen before and after the XDP program and passed it to pagepoolputpage() on the XDPCONSUMED path. bpfxdpadjusttail() zeroes the grown area, which dirties the CPU cache, but a later negative adjust only moves dataend back. If the program grows and then shrinks the tail, both endpoints miss the zeroed range, so those dirty cache lines are not written back before the page is reused.
The length was also wrong since commit 88095728511e ("net: stmmac: fix rx Scatter-Gather support") moved the pagepool DMA window to offset 0 and set maxlen to dmabufsz + pageoffset: the driver still subtracted buf->pageoffset, so it synced [base, dataend - pageoffset) instead of [base, dataend).
On a non-coherent platform those dirty lines can be evicted after the device has DMA'd the next frame into the recycled page and corrupt it.
Sync the whole pagepool DMA window on the XDPCONSUMED path with pagepoolrecycledirect(), as the PASS path and pagepool allocation already do. The device only writes [pageoffset, pageoffset + dmabufsz), so syncing [base, base + maxlen) covers every cache line it can touch, regardless of how the program adjusted the packet.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
On the XDP_CONSUMED path, sync the whole page_pool DMA window before recycling the page: set max_len to dma_buf_sz + page_offset and sync [base, base + max_len).
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Exposure requires the stmmac network driver on a non-coherent platform, with XDP processing that recycles receive pages through the XDP_CONSUMED path. The affected package identified is azure-linux/kernel 6.6.161.1-1.
What XDP behavior triggers the unsafe DMA synchronization?
An XDP program must grow the packet tail with bpf_xdp_adjust_tail(), which zeroes and dirties the newly added area, then shrink the tail again before consuming the packet. This can leave the zeroed range outside both observed data_end boundaries when the page is recycled.
What is the expected consequence if the condition occurs?
Dirty CPU cache lines may be written back after the device has DMA'd a subsequent frame into the recycled page. This can corrupt that next received frame.