CVE-2026-139169

net: lan966x: release the in-flight slot of a stale TX skb

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: release the in-flight slot of a stale TX skb

lan966x_ptp_txtstamp_request() counts every two step TX skb waiting for
its timestamp in lan966x->ptp_skbs, and refuses new ones once
LAN966X_MAX_PTP_ID are in flight. lan966x_ptp_txtstamp_old_release()
frees the skbs that have waited longer than LAN966X_PTP_TIMEOUT.

Before this patch, old_release() does not decrement ptp_skbs, so every
skb whose timestamp never arrives, for example because the switch
discarded the frame, keeps its slot forever. Once LAN966X_MAX_PTP_ID
slots are lost, two step frames fail to transmit on every port of the
switch.

Return the number of released skbs from old_release() and subtract it
from ptp_skbs in txtstamp_request(), under the ptp_ts_id_lock 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 lan9668 board.

Analysis

AI-generated

Technical impact

The Linux kernel driver for the lan966x network device contains a resource accounting flaw. The old_release() routine does not decrement the counter of in‑flight PTP timestamp requests when a stale transmission buffer is aged out, causing all available PTP slots to become permanently occupied. When the slot table is exhausted, every subsequent two‑step PTP frame fails to transmit. This denial of service can affect all network ports on the switch and reflects an improper resource accounting weakness (CWE‑400).

Affected Systems

The vulnerability exists in Linux kernel implementations that include the lan966x driver. No specific kernel version range was identified, so any build containing this driver before the patch may be affected.

Risk and Exploitability

The flaw can likely be triggered by an attacker sending a large number of two‑step PTP timestamp requests to the LAN966X device until all slots are used. EPSS data is unavailable and the vulnerability is not in CISA's KEV catalog, but the lack of mitigation and the nature of the resource exhaustion indicate that exploitation is possible in a networked environment. Although a CVSS score is not provided, the impact suggests a moderate to high severity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the lan966x driver fix
  • If a kernel upgrade cannot be performed immediately, disable or reduce the use of two‑step PTP frames on the affected switch ports as a temporary measure
  • Periodically monitor PTP slot usage or trigger occasional two‑step frames to allow stale buffers to be aged out

Generated by OpenCVE AI on November 30, 2026 at 19:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-400
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: lan966x: release the in-flight slot of a stale TX skb lan966x_ptp_txtstamp_request() counts every two step TX skb waiting for its timestamp in lan966x->ptp_skbs, and refuses new ones once LAN966X_MAX_PTP_ID are in flight. lan966x_ptp_txtstamp_old_release() frees the skbs that have waited longer than LAN966X_PTP_TIMEOUT. Before this patch, old_release() does not decrement ptp_skbs, so every skb whose timestamp never arrives, for example because the switch discarded the frame, keeps its slot forever. Once LAN966X_MAX_PTP_ID slots are lost, two step frames fail to transmit on every port of the switch. Return the number of released skbs from old_release() and subtract it from ptp_skbs in txtstamp_request(), under the ptp_ts_id_lock 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 lan9668 board.
Title net: lan966x: release the in-flight slot of a stale TX skb
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

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