CVE-2026-139209: net: sparx5/lan969x: do not read past skb->len when injecting a frame
In the Linux kernel, the following vulnerability has been resolved:
net: sparx5/lan969x: do not read past skb->len when injecting a frame
sparx5inject() 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, and reproduced on lan969x and sparx5 with register injection: bytes 57 to 59 of a 57 byte frame were not zero. With the fix they are zero, and traffic still passes on both chips.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - 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 sparx5_inject(), write trailing bytes from a zeroed word and pad frames shorter than 60 bytes with zero words.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel sparx5 or lan969x networking driver with register-based frame injection are affected. The issue was reproduced on both lan969x and sparx5 hardware.
What is required to trigger the out-of-bounds read?
A frame must be injected through sparx5_inject() with a length that is not divisible by four bytes. Short frames are particularly relevant because trailing bytes read beyond skb->len can be transmitted rather than replaced by padding.
How can I tell whether the issue is occurring?
With register injection, inspect frames whose length is not a multiple of four. In the reported reproduction, a 57-byte frame contained non-zero data in bytes 57 through 59; after the fix, those trailing bytes are zero.
What is the practical impact for short injected frames?
For frames shorter than 60 bytes, the driver pads to the minimum frame size, but before the fix it marked the entire final 32-bit word valid. This can cause one to three bytes beyond the supplied frame data to be transmitted before zero padding begins.