net: lan966x: do not inject uninitialised bytes past skb->len

Summary

CVECVE-2026-139178
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:36 UTC
Updated2026-11-30 14:18:36 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: net: lan966x: do not inject uninitialised bytes past skb->len lan966x_port_ifh_xmit() writes the frame to the injection FIFO one 32-bit word at a time, and pads frames shorter than 60 bytes with zero words. Before this patch, the last word is loaded whole even when skb->len is not a multiple of four, so 1 to 3 bytes past the end of the frame are read. For a frame shorter than 60 bytes those bytes are also transmitted, as VLD_BYTES marks the whole last word valid and the padding starts at the next word. Write the trailing bytes from a zeroed word. The number of words written and VLD_BYTES are unchanged. Found by an AI code review agent. Reproduced on a lan9668 board with register injection, by sending a 57 byte frame and capturing it on the link partner: byte 57 of the padded frame was not zero. With the fix all padding bytes are zero.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d28d6d2e37d10d607f931d25c835a0bd94d370e3 33041f173345986e7139d1687b703eb373c1a598 git Not specified
CNA Linux Linux affected d28d6d2e37d10d607f931d25c835a0bd94d370e3 e32fbfc5ad788b85fc8ed692981b643db8cf8053 git Not specified
CNA Linux Linux affected d28d6d2e37d10d607f931d25c835a0bd94d370e3 99d87e161915fc55423f9b6367f4f911605efbc7 git Not specified
CNA Linux Linux affected d28d6d2e37d10d607f931d25c835a0bd94d370e3 b191152faaa57cd5b5b72f20c4a2d2b8dc96f899 git Not specified
CNA Linux Linux affected d28d6d2e37d10d607f931d25c835a0bd94d370e3 a287ac76e7b5735bce619c060237095824eb0ae5 git Not specified
CNA Linux Linux affected d28d6d2e37d10d607f931d25c835a0bd94d370e3 b4a7180558eb3cd8affa1e240b22171425bdfcb4 git Not specified
CNA Linux Linux affected 5.17 Not specified
CNA Linux Linux unaffected 5.17 semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/33041f173345986e7139d1687b703eb373c1a598 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/99d87e161915fc55423f9b6367f4f911605efbc7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e32fbfc5ad788b85fc8ed692981b643db8cf8053 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a287ac76e7b5735bce619c060237095824eb0ae5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b191152faaa57cd5b5b72f20c4a2d2b8dc96f899 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b4a7180558eb3cd8affa1e240b22171425bdfcb4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report