CVE-2026-139208

net: sparx5: fix tx DCB index drift in fdma xmit

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: sparx5: fix tx DCB index drift in fdma xmit

sparx5_fdma_xmit() advances dcb_index before checking that the FDMA is
done with the DCB, and does not undo the advance when the check fails.
Before commit f4aa7e361ae2 ("net: sparx5: use FDMA library for adding
DCB's in the tx path") the next DCB was always the one after last_dcb.
Since then dcb_index drifts one DCB further away from last_dcb on every
failed transmit.

While the ring is full, this drops frames even though completed DCBs
sit behind dcb_index. After a run of failures, dcb_index can also land
on last_dcb itself. Re-adding last_dcb loses the frame, because the
FDMA has already passed the tail of the chain, and that DCB is never
completed again.

Fix this by making dcb_index the next DCB to use, and advancing it only
after the DCB has been added, as the rx path does. dcb_index and
last_dcb now only move together, so dcb_index always points at the DCB
after last_dcb.

The issue was found by an AI code review agent. It was reproduced on a
sparx5 PCB135 board with a modified kernel that forces 63 consecutive
transmit failures. Afterwards, about 1 in 64 frames is lost for good.
With the fix, the same test loses no frames.

Analysis

AI-generated

Technical impact

A logic error in the Linux kernel’s sparx5 driver causes the transmit descriptor index (dcb_index) to drift whenever a transmit attempt fails. The driver advances the index before confirming that the FDMA operation has finished and, if the check fails, fails to revert the advance. This drift can lead to frames being dropped when the ring is full or when the index lands on an already processed descriptor, resulting in a measurable loss of traffic—roughly one frame lost for every 64 transmissions in a test scenario. The flaw is effectively an improper synchronization of the driver’s state, which can degrade network performance or lead to a denial of service if an attacker could sustain the failure condition.

Affected Systems

All Linux kernel installations that include the sparx5 network driver and have not incorporated the maintenance commit f4aa7e361ae2. The vulnerability applies to the generic Linux kernel and any derivative that embeds this driver, regardless of the specific upstream version—any build prior to receiving the fix remains affected.

Risk and Exploitability

EPSS data is unavailable and the vulnerability is not in CISA KEV, indicating no publicly known exploits to date. The likely attack vector would involve generating or inducing repeated transmit failures over the affected interface, which malicious traffic could potentially trigger. While no CVSS score is provided, the high severity of sustained frame loss and the lack of existing mitigations suggest this issue warrants significant risk attention. Administrators should treat it as high risk until patching occurs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains commit f4aa7e361ae2, which corrects the dcb_index handling.
  • If an upgrade cannot be applied immediately, reduce traffic load or disable features that lead to frequent transmit failures to limit the likelihood of the index drifting until the patch is available.
  • Continuously monitor network throughput and frame loss to detect any residual impact and confirm that the applied fix provides full protection.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-665
CWE-668
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: sparx5: fix tx DCB index drift in fdma xmit sparx5_fdma_xmit() advances dcb_index before checking that the FDMA is done with the DCB, and does not undo the advance when the check fails. Before commit f4aa7e361ae2 ("net: sparx5: use FDMA library for adding DCB's in the tx path") the next DCB was always the one after last_dcb. Since then dcb_index drifts one DCB further away from last_dcb on every failed transmit. While the ring is full, this drops frames even though completed DCBs sit behind dcb_index. After a run of failures, dcb_index can also land on last_dcb itself. Re-adding last_dcb loses the frame, because the FDMA has already passed the tail of the chain, and that DCB is never completed again. Fix this by making dcb_index the next DCB to use, and advancing it only after the DCB has been added, as the rx path does. dcb_index and last_dcb now only move together, so dcb_index always points at the DCB after last_dcb. The issue was found by an AI code review agent. It was reproduced on a sparx5 PCB135 board with a modified kernel that forces 63 consecutive transmit failures. Afterwards, about 1 in 64 frames is lost for good. With the fix, the same test loses no frames.
Title net: sparx5: fix tx DCB index drift in fdma xmit
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-665

    Improper Initialization

  • CWE-668

    Exposure of Resource to Wrong Sphere

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