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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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

ProductVersions
Linux Linuxd28d6d2e37d10d607f931d25c835a0bd94d370e3 to before 33041f173345986e7139d1687b703eb373c1a598 Affectedd28d6d2e37d10d607f931d25c835a0bd94d370e3 to before e32fbfc5ad788b85fc8ed692981b643db8cf8053 Affectedd28d6d2e37d10d607f931d25c835a0bd94d370e3 to before 99d87e161915fc55423f9b6367f4f911605efbc7 Affectedd28d6d2e37d10d607f931d25c835a0bd94d370e3 to before b191152faaa57cd5b5b72f20c4a2d2b8dc96f899 Affectedd28d6d2e37d10d607f931d25c835a0bd94d370e3 to before a287ac76e7b5735bce619c060237095824eb0ae5 Affectedd28d6d2e37d10d607f931d25c835a0bd94d370e3 to before b4a7180558eb3cd8affa1e240b22171425bdfcb4 Affected
Linux Linux5.17 Affectedbefore 5.17 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.