Description
In the Linux kernel, the following vulnerability has been resolved:

net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work

Upon an MDIO CRC error mxl862xx_crc_err_work_fn() walks the DSA ports
and closes the CPU port conduits:

dsa_switch_for_each_cpu_port(dp, priv->ds)
dev_close(dp->conduit);

mxl862xx_remove() unregisters the switch before cancelling this work:

set_bit(MXL862XX_FLAG_WORK_STOPPED, &priv->flags);
cancel_delayed_work_sync(&priv->stats_work);
dsa_unregister_switch(ds);
mxl862xx_host_shutdown(priv);

dsa_unregister_switch() frees the dsa_port objects. If a CRC error
schedules the work during teardown it can run after the ports have been
freed and dereference freed memory.

Guard the port walk with MXL862XX_FLAG_WORK_STOPPED, which is already set
before dsa_unregister_switch(). DSA tears the ports down under
rtnl_lock(), so checking the flag under rtnl_lock() means the work either
runs before teardown and sees valid ports, or runs afterwards, observes
the flag and skips the walk. This mirrors the host_flood_work handler,
which skips torn-down ports under rtnl_lock().
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability is a use‑after‑free flaw in the Linux kernel’s Distributed Switch Architecture (DSA) driver for MXL862xx devices. An MDIO CRC error triggers the work handler, which walks the DSA ports and closes their conduits. If the driver is being torn down, the switch unregisters and frees the dsa_port structures before the delayed work is cancelled. A CRC error that schedules the work during this teardown can therefore cause the work to run after the ports have been freed, dereferencing stale memory. The fault is also classified under CWE‑825, indicating that the improper release of critical data could be exposed. This kernel memory corruption can lead to a crash or potentially allow an attacker to execute code in kernel mode or gain elevated privileges.

Affected Systems

All Linux kernel builds that include the MXL862xx DSA driver are potentially affected. The vendor list is simply "Linux" and no specific kernel version is enumerated in the CNA data, so any system running a kernel containing that driver path could be vulnerable until the fix is applied.

Risk and Exploitability

The CVSS score of 7.8 denotes a high‑severity flaw, and the EPSS score is reported to be below 1 %, indicating a low likelihood of public exploitation at present. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector involves inducing an MDIO CRC error, which could be triggered by abnormal traffic or a malicious device connected to the switch. The race condition between error handling and driver teardown further complicates the exploit, meaning that an attacker would need to time an error during a shutdown sequence to trigger the use‑after‑free. While the potential impact is severe—kernel corruption that can crash the system or provide privilege escalation—the estimated exploit probability remains low.

Generated by OpenCVE AI on August 18, 2026 at 05:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the commit which introduces the work‑stopped flag guard.
  • If immediate kernel upgrade is infeasible, disable the MXL862xx driver or isolate the hardware to prevent MDIO CRC errors.
  • Ensure that before driver removal the MXL862XX_FLAG_WORK_STOPPED flag is set and all pending crc_err_work delayed work has been cancelled, preventing use‑after‑free during teardown.

Generated by OpenCVE AI on August 18, 2026 at 05:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 04:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 18 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 17 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 15 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work Upon an MDIO CRC error mxl862xx_crc_err_work_fn() walks the DSA ports and closes the CPU port conduits: dsa_switch_for_each_cpu_port(dp, priv->ds) dev_close(dp->conduit); mxl862xx_remove() unregisters the switch before cancelling this work: set_bit(MXL862XX_FLAG_WORK_STOPPED, &priv->flags); cancel_delayed_work_sync(&priv->stats_work); dsa_unregister_switch(ds); mxl862xx_host_shutdown(priv); dsa_unregister_switch() frees the dsa_port objects. If a CRC error schedules the work during teardown it can run after the ports have been freed and dereference freed memory. Guard the port walk with MXL862XX_FLAG_WORK_STOPPED, which is already set before dsa_unregister_switch(). DSA tears the ports down under rtnl_lock(), so checking the flag under rtnl_lock() means the work either runs before teardown and sees valid ports, or runs afterwards, observes the flag and skips the walk. This mirrors the host_flood_work handler, which skips torn-down ports under rtnl_lock().
Title net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:43:51.843Z

Reserved: 2026-08-09T03:40:39.926Z

Link: CVE-2026-72411

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:14.720

Modified: 2026-08-17T06:19:07.950

Link: CVE-2026-72411

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72411 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T05:45:03Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference