CVE-2026-53247

net: ethernet: mtk_eth_soc: Fix use-after-free in metadata dst teardown

Published Jun 25, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: ethernet: mtk_eth_soc: Fix use-after-free in metadata dst teardown

mtk_free_dev() calls metadata_dst_free() which frees the metadata_dst
with kfree() immediately, bypassing the RCU grace period.
In the RX path, skb_dst_set_noref() sets a non-refcounted pointer from
the skb to the metadata_dst. This function requires RCU read-side
protection and the dst must remain valid until all RCU readers complete.
Since metadata_dst_free() calls kfree() directly, a use-after-free can
occur if any skb still holds a noref pointer to the dst when the driver
tears it down.
Replace metadata_dst_free() with dst_release() which properly goes
through the refcount path: when the refcount drops to zero, it schedules
the actual free via call_rcu_hurry(), ensuring all RCU readers have
completed before the memory is freed.

Analysis

AI-generated

Technical impact

The MediaTek mtk_eth_soc Ethernet driver in the Linux kernel contains a use‑after‑free flaw where a metadata object is released with kfree() instead of through the RCU‑safe reference‑counting path. While other network buffers hold non‑refcounted pointers to the same object, a use‑after‑free can occur. This defect allows an attacker to provoke kernel memory corruption or a crash by sending crafted packets to the affected interface.

Affected Systems

All Linux kernel builds that include the MediaTek mtk_eth_soc driver prior to the commit replacing metadata_dst_free() with dst_release(). No specific version numbers are listed, so any kernel containing the legacy implementation is impacted.

Risk and Exploitability

The CVSS score of 9.8 indicates a very high severity vulnerability. An EPSS score of < 1% indicates an extremely low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote network traffic sent to the _eth_soc, with no local privilege escalation required beyond NIC access. Despite the low exploitation probability, the high CVSS rating means the potential impact is severe if an exploit is found, so the overall risk should be considered high rather than moderate.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the mtk_eth_soc driver fix with the RCUing change.
  • Reboot the system after the update to load the corrected driver and release any stale references.
  • If an immediate kernel upgrade is not possible, disable or block all traffic on the affected Ethernet interface until the patch is deployed to prevent exploitation through crafted packets.

Generated by OpenCVE AI on August 12, 2026 at 08:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8629-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8637-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8629-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8643-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8629-3 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8656-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8643-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8660-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8643-3 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8643-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8643-5 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8748-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8911-1 Linux kernel (OEM) vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-416
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: ethernet: mtk_eth_soc: Fix use-after-free in metadata dst teardown mtk_free_dev() calls metadata_dst_free() which frees the metadata_dst with kfree() immediately, bypassing the RCU grace period. In the RX path, skb_dst_set_noref() sets a non-refcounted pointer from the skb to the metadata_dst. This function requires RCU read-side protection and the dst must remain valid until all RCU readers complete. Since metadata_dst_free() calls kfree() directly, a use-after-free can occur if any skb still holds a noref pointer to the dst when the driver tears it down. Replace metadata_dst_free() with dst_release() which properly goes through the refcount path: when the refcount drops to zero, it schedules the actual free via call_rcu_hurry(), ensuring all RCU readers have completed before the memory is freed.
Title net: ethernet: mtk_eth_soc: Fix use-after-free in metadata dst teardown
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:34 PM
Reserved
Jun 9, 2026, 7:44 AM
Status
Analyzed
Published
Jun 25, 2026, 9:16 AM
Modified
Jul 7, 2026, 10:16 PM
Severity
Public date
Jun 25, 2026, 12:00 AM