CVE-2026-139178: net: lan966x: do not inject uninitialised bytes past skb->len
In the Linux kernel, the following vulnerability has been resolved:
net: lan966x: do not inject uninitialised bytes past skb->len
lan966xportifhxmit() 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 VLDBYTES 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 VLDBYTES 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In Linux kernel function lan966x_port_ifh_xmit(), write trailing bytes from a zeroed word so bytes past skb->len are zero-padded.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's lan966x network driver are exposed when that driver transmits frames whose length is not a multiple of four bytes. The issue was reproduced on a lan9668 board using register injection.
What traffic can cause unintended bytes to be transmitted?
A transmitted frame with a length leaving a one- to three-byte remainder in its final 32-bit word can cause bytes beyond skb->len to be read. For frames shorter than 60 bytes, those bytes can be sent on the link because the entire final word is marked valid; a 57-byte frame was used in reproduction.
How can I determine whether the issue is occurring on a device?
Capture traffic on a link partner while sending a short test frame whose length is not divisible by four, such as 57 bytes. Before the fix, a padding byte beyond the intended frame data may be nonzero; with the fix, all padding bytes are zero.
What does the fix change?
The fix writes trailing partial-word bytes from a zeroed word rather than loading the final word in full. It does not change the number of words written or the VLD_BYTES setting.