{"id":"CVE-2026-139170","state":"PUBLISHED","title":"net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit\n\nlan966x_fdma_xmit_xdpf() transmits both XDP_TX frames and xdp_frames\nfrom ndo_xdp_xmit, and builds the DB with\nlan966x_fdma_xdp_tx_dataptr_cb(), which adds XDP_PACKET_HEADROOM to the\nstored DMA address.\n\nBefore this patch, the headroom is also added for xdp_frames. For\nXDP_TX the stored address is the start of the page pool page, but for an\nxdp_frame it is the mapping of the IFH placed in front of the frame\ndata, so frames from ndo_xdp_xmit are read from XDP_PACKET_HEADROOM\nbytes after their IFH.\n\nUse the plain tx dataptr callback for xdp_frames.\n\nFound by an AI code review agent. Reproduced on a lan9668 board with an\nXDP program redirecting frames from one port to another: none of the 20\nframes arrived intact on the link partner. With the fix all 20 did.","publishedAt":"2026-11-30T13:32:13.751Z","updatedAt":"2026-11-30T13:32:13.751Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"9d869f0432c3571756b6694b4dd33eaec3f457b6","versionType":"git"},{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"dd75b001792e2f67538b6bdc7ee66f4d352fbca9","versionType":"git"},{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"92b35a3669db7cfb2fff5a58a09c2a3d3640bf89","versionType":"git"},{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"ce3192e0dafa829e76edefecc16a32589b53c875","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139170.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139170","state":"PUBLISHED","datePublished":"2026-11-30T13:32:13.751Z","dateUpdated":"2026-11-30T13:32:13.751Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.918Z"},"containers":{"cna":{"title":"net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit\n\nlan966x_fdma_xmit_xdpf() transmits both XDP_TX frames and xdp_frames\nfrom ndo_xdp_xmit, and builds the DB with\nlan966x_fdma_xdp_tx_dataptr_cb(), which adds XDP_PACKET_HEADROOM to the\nstored DMA address.\n\nBefore this patch, the headroom is also added for xdp_frames. For\nXDP_TX the stored address is the start of the page pool page, but for an\nxdp_frame it is the mapping of the IFH placed in front of the frame\ndata, so frames from ndo_xdp_xmit are read from XDP_PACKET_HEADROOM\nbytes after their IFH.\n\nUse the plain tx dataptr callback for xdp_frames.\n\nFound by an AI code review agent. Reproduced on a lan9668 board with an\nXDP program redirecting frames from one port to another: none of the 20\nframes arrived intact on the link partner. With the fix all 20 did."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"9d869f0432c3571756b6694b4dd33eaec3f457b6","versionType":"git"},{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"dd75b001792e2f67538b6bdc7ee66f4d352fbca9","versionType":"git"},{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"92b35a3669db7cfb2fff5a58a09c2a3d3640bf89","versionType":"git"},{"version":"29cc3a66a81ddaa237a3fe3c14cf0fc582db25bf","status":"affected","lessThan":"ce3192e0dafa829e76edefecc16a32589b53c875","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9d869f0432c3571756b6694b4dd33eaec3f457b6"},{"url":"https://git.kernel.org/stable/c/dd75b001792e2f67538b6bdc7ee66f4d352fbca9"},{"url":"https://git.kernel.org/stable/c/92b35a3669db7cfb2fff5a58a09c2a3d3640bf89"},{"url":"https://git.kernel.org/stable/c/ce3192e0dafa829e76edefecc16a32589b53c875"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:13.751Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}