CVE-2026-72411

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

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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().

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
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'}

Type Values Removed Values Added
Weaknesses CWE-416
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
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:43 AM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Aug 17, 2026, 6:19 AM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM