CVE-2026-139178

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

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The lan966x network driver wrote frames to the hardware FIFO one 32‑bit word at a time. For frames whose length was not a multiple of four bytes, the driver loaded the entire last 32‑bit word, even though only skb->len bytes were valid. Consequently, 1–3 bytes past the end of the frame—which had never been initialized—were transmitted onto the network. The vulnerability does not trigger remote code execution; it simply allows arbitrary data that may exist in kernel memory to be sent out the interface, potentially leaking sensitive information and corrupting the transmitted frame.

Affected Systems

All Linux kernel implementations that include the lan966x driver prior to the included patch are affected. The vendor data lists Linux as the product, and the CPE indicates that the issue spans kernel releases without explicit version constraints in the public data. The exact kernel versions fixed by the patch are those containing commit 33041f173345986e7139d1687b703eb373c1a598 or later up to the current release in 2026.

Risk and Exploitability

The CVSS score is not disclosed and the EPSS score is unavailable, so the overall severity cannot be precisely quantified from the available data. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is a local or network attacker who can inject specially crafted frames (e.g., a 57‑byte frame) into the LAN and observe the resulting traffic. Because the flaw does not execute arbitrary code, the risk is primarily information disclosure and minor integrity impact, but it provides a side channel that could be useful in a broader attack chain. The vulnerability can be mitigated by applying the patched kernel, and the risk remains until a kernel containing the fix is in use.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the lan966x driver patch (commit 33041f1…).
  • If a kernel upgrade is not immediately feasible, rebuild the lan966x driver with the updated source that writes zeroed padding past skb->len.
  • As a temporary measure, disable or remove the lan966x network interface so that uninitialized bytes are not transmitted.

Generated by OpenCVE AI on November 30, 2026 at 20:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
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.
Title net: lan966x: do not inject uninitialised bytes past skb->len
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-457

    Use of Uninitialized Variable

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM