CVE-2026-139170: net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit
In the Linux kernel, the following vulnerability has been resolved:
net: lan966x: fix the DB dataptr of frames from ndoxdpxmit
lan966xfdmaxmitxdpf() transmits both XDPTX frames and xdpframes from ndoxdpxmit, and builds the DB with lan966xfdmaxdptxdataptrcb(), which adds XDPPACKETHEADROOM to the stored DMA address.
Before this patch, the headroom is also added for xdpframes. For XDPTX the stored address is the start of the page pool page, but for an xdpframe it is the mapping of the IFH placed in front of the frame data, so frames from ndoxdpxmit are read from XDPPACKETHEADROOM bytes after their IFH.
Use the plain tx dataptr callback for xdpframes.
Found by an AI code review agent. Reproduced on a lan9668 board with an XDP program redirecting frames from one port to another: none of the 20 frames arrived intact on the link partner. With the fix all 20 did.
Affected Software
Event History
Frequently Asked Questions
Which systems are affected in practice?
Systems using the Linux lan966x network driver and transmitting XDP frames through ndo_xdp_xmit are affected. The reported reproduction used a lan9668 board with an XDP program redirecting traffic between ports.
What traffic or configuration is needed to trigger the problem?
The issue is triggered when xdp_frames supplied through ndo_xdp_xmit are transmitted by lan966x_fdma_xmit_xdpf(). An XDP redirect path between ports is a demonstrated trigger.
How can I tell whether the issue is occurring?
Affected transmissions can be corrupted because the device reads frame data starting XDP_PACKET_HEADROOM bytes after the IFH. In the reported test, none of 20 redirected frames arrived intact at the link partner.