CVE-2026-139170

net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit

lan966x_fdma_xmit_xdpf() transmits both XDP_TX frames and xdp_frames
from ndo_xdp_xmit, and builds the DB with
lan966x_fdma_xdp_tx_dataptr_cb(), which adds XDP_PACKET_HEADROOM to the
stored DMA address.

Before this patch, the headroom is also added for xdp_frames. For
XDP_TX the stored address is the start of the page pool page, but for an
xdp_frame it is the mapping of the IFH placed in front of the frame
data, so frames from ndo_xdp_xmit are read from XDP_PACKET_HEADROOM
bytes after their IFH.

Use the plain tx dataptr callback for xdp_frames.

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.

Analysis

AI-generated

Technical impact

The vulnerability lies in the lan966x network driver when transmitting XDP frames via the ndo_xdp_xmit path. A faulty calculation of the database datapointer adds headroom bytes to the DMA address for XDP frames, causing the frame data to be read from an incorrect location. This results in corrupted packets that fail to reach the network partner. The flaw does not grant arbitrary code execution or access to confidential data; it primarily leads to loss of packet integrity and a potential denial of service.

Affected Systems

All Linux kernel releases that ship with the lan966x network driver and have not yet applied the patch. The issue is specific to the lan966x hardware family (e.g., lan9668) and affects systems using XDP programs that redirect frames between ports. No exact kernel version range is provided, so any system in which the driver is active and the bug is present may be impacted.

Risk and Exploitability

The CVSS score is not disclosed, and the EPSS score is unavailable, indicating a lack of concrete data on exploitation likelihood. The patch was discovered during an AI code review and reproduced on a lan9668 board where 20 frames failed to deliver correctly. The CVE description does not specify the attack vector or privilege requirements. It is inferred that influencing or loading an XDP program on the affected system would generally require privileged access, which would make the attack local or necessitate privilege escalation. The vulnerability is not listed in the CISA KEV catalog, so no known public exploit exists yet. Nonetheless, the loss of packets can degrade network availability, making it a notable risk for mission‑critical deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the lan966x driver patch
  • If a kernel upgrade is not feasible, disable XDP functionality on affected interfaces to avoid the misaddressing until a patch is applied
  • If possible, redirect traffic away from affected lan966x interfaces or replace the hardware until the driver is updated

Generated by OpenCVE AI on December 1, 2026 at 21:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-178
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit lan966x_fdma_xmit_xdpf() transmits both XDP_TX frames and xdp_frames from ndo_xdp_xmit, and builds the DB with lan966x_fdma_xdp_tx_dataptr_cb(), which adds XDP_PACKET_HEADROOM to the stored DMA address. Before this patch, the headroom is also added for xdp_frames. For XDP_TX the stored address is the start of the page pool page, but for an xdp_frame it is the mapping of the IFH placed in front of the frame data, so frames from ndo_xdp_xmit are read from XDP_PACKET_HEADROOM bytes after their IFH. Use the plain tx dataptr callback for xdp_frames. 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.
Title net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-178

    Improper Handling of Case Sensitivity

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM