CVE-2026-143431: net: lan966x: do not warn on MAC entries that are not port destined
In the Linux kernel, the following vulnerability has been resolved:
net: lan966x: do not warn on MAC entries that are not port destined
lan966xmacirqhandler() scans the rows of the MAC table that the analyzer reports as changed, reads back all four columns of each row and treats ANAMACACCESS.DESTIDX as a port number.
Before this patch, a destination index above numphysports hits a WARNON(). The driver installs such entries itself: lan966xmaccpulearn() uses PGIDCPU, and L2 multicast entries use a general-purpose PGID. A row holding one of them is read back whenever another entry in the same row is learned or aged out, so the scan warns in normal operation, repeatedly once the MAC table is busy.
Skipping such a column is already the right behaviour. Drop the WARNON() and keep the bounds check as a plain filter.
Found by an AI code review agent. Reproduced on a lan9668 board by bridging two ports with a 10 s ageing time and sending three rounds of 2048 new source MACs: the base kernel warned 42 times from lan966xmacirqprocess(), the fixed kernel did not warn.
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
Event History
Frequently Asked Questions
Which systems are affected in practice?
Systems using the Linux kernel lan966x Ethernet driver on LAN9668-class hardware are implicated. The warning was reproduced on a LAN9668 board while bridging two ports with a 10-second MAC ageing time and generating many new source MAC addresses.
What conditions trigger the warning?
The driver can encounter its own MAC-table entries whose destination index is a CPU or general-purpose PGID rather than a physical port. When another entry in the same MAC-table row is learned or aged out, the interrupt handler reads that row and can issue a warning if the destination index exceeds the physical-port count.
Does this indicate that traffic is being incorrectly forwarded?
The provided information describes erroneous kernel warnings during MAC-table scanning, not incorrect forwarding. Entries not destined for a physical port are meant to be skipped by the bounds-check filter.
How can I identify this issue on an affected system?
Look for repeated warnings originating from lan966x_mac_irq_process() during normal MAC learning or ageing activity. In the reported reproduction, a busy MAC table produced 42 warnings on the unpatched kernel.
What changes when the fix is applied?
The fix removes the WARN_ON() for destination indices outside the physical-port range while retaining the bounds check as a filter. Such CPU and general-purpose PGID entries are skipped, and the reported fixed kernel emitted no warnings in the reproduction.