CVE-2026-143326: net: sparx5/lan969x: release the in-flight slot of a stale TX skb
In the Linux kernel, the following vulnerability has been resolved:
net: sparx5/lan969x: release the in-flight slot of a stale TX skb
sparx5ptptxtstamprequest() counts every two step TX skb waiting for its timestamp in sparx5->ptpskbs, and refuses new ones once SPARX5MAXPTPID are in flight. sparx5ptptxtstampoldrelease() frees the skbs that have waited longer than SPARX5PTPTIMEOUT.
Before this patch, oldrelease() does not decrement ptpskbs, so every skb whose timestamp never arrives, for example because the switch discarded the frame, keeps its slot forever. Once SPARX5MAXPTPID slots are lost, two step frames fail to transmit on every port of the switch.
Return the number of released skbs from oldrelease() and subtract it from ptpskbs in txtstamprequest(), under the ptptsidlock it already takes.
This fixes the accounting only. A port's stale skbs are still aged out only when that port sends a two step frame, so a port that stops sending them keeps its stale skbs, and their slots, until it sends one again. That behaviour is unchanged by this patch.
Found by an AI code review agent. Reproduced on a lan9696 board with a modified kernel that drops the TX timestamps of two step frames, after which two step timestamping stopped working on the port. With the fix, timestamping keeps working on that board and on a sparx5 PCB135 board.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel sparx5/lan969x driver and transmitting two-step PTP timestamped frames are exposed. The issue affects the switch-wide pool of in-flight PTP timestamp slots.
What conditions are required to trigger the failure?
A two-step TX frame must remain without its expected timestamp, such as when the switch discards the frame. Each such stale frame consumes a slot permanently in the affected code until the available SPARX5_MAX_PTP_ID slots are exhausted.
What is the operational impact after the slots are exhausted?
Two-step frames fail to transmit on every port of the switch. This is a denial-of-service condition for two-step transmission rather than a one-port-only failure.
Are stale timestamp requests cleaned up automatically on inactive ports?
No. Even with the accounting fix, stale SKBs for a port are aged out only when that same port sends another two-step frame. A port that stops sending two-step frames retains its stale SKBs and their slots until it sends one again.
How can an administrator recognize that the issue has occurred?
Affected systems can show two-step frames failing to transmit across all switch ports after repeated missing TX timestamps have depleted the in-flight slot pool.