# CVE-2026-139170: net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:13.751Z
- Modified: 2026-11-30T14:18:36.003Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf before 9d869f0432c3571756b6694b4dd33eaec3f457b6; from 29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf before dd75b001792e2f67538b6bdc7ee66f4d352fbca9; from 29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf before 92b35a3669db7cfb2fff5a58a09c2a3d3640bf89; from 29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf before ce3192e0dafa829e76edefecc16a32589b53c875; 6.12 (not affected: before 6.12; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/9d869f0432c3571756b6694b4dd33eaec3f457b6>
- <https://git.kernel.org/stable/c/dd75b001792e2f67538b6bdc7ee66f4d352fbca9>
- <https://git.kernel.org/stable/c/92b35a3669db7cfb2fff5a58a09c2a3d3640bf89>
- <https://git.kernel.org/stable/c/ce3192e0dafa829e76edefecc16a32589b53c875>

## Sources

- CVE List: [CVE-2026-139170](https://www.cve.org/CVERecord?id=CVE-2026-139170), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139170](https://nvd.nist.gov/vuln/detail/CVE-2026-139170), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139170 · Whole record: https://cve.day/CVE-2026-139170.json · Rebuilt by cve.day 2026-11-30T14:32:51.716Z
