Skip to main content
Vulnerability Database/CVE-2026-98564

CVE-2026-98564: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98564 is a use-after-free flaw in the Linux kernel MT7530 DSA driver affecting MDIO IRQ mappings. The vulnerability can cause kernel crashes during device removal. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98564 Overview

CVE-2026-98564 is a Linux kernel vulnerability in the net/dsa/mt7530 driver that affects MediaTek MT7530 switch chips. The flaw involves improper teardown of per-PHY interrupt mappings during device removal. The driver's mt7530_remove_common() function disposes MDIO interrupt mappings before the regmap-irq chip that owns the domain is released. This creates a window where the switch's regmap-irq thread can dispatch on a stale mapping, causing irq_find_mapping() to return 0 and irq_to_desc() to return NULL. The subsequent call to handle_nested_irq() locks desc->lock without a NULL check, leading to a kernel fault.

Critical Impact

A race between IRQ teardown and late interrupt dispatch can cause a NULL pointer dereference in the Linux kernel, resulting in a denial of service on affected MT7530-based networking hardware.

Affected Products

  • Linux kernel versions containing the net/dsa/mt7530 driver prior to the fix commits
  • Systems using MediaTek MT7530 DSA switch chips
  • Stable kernel branches referenced by commits 0d80ba0, 2357c68, and f306e46

Discovery Timeline

  • 2026-10-18 - CVE-2026-98564 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98564

Vulnerability Analysis

The vulnerability resides in the MediaTek MT7530 Distributed Switch Architecture (DSA) driver within the Linux kernel. During device removal, mt7530_remove_common() explicitly disposes the per-PHY interrupt mappings. The owning regmap-irq chip is registered via the devres (devm) framework, so its parent interrupt is not freed until after .remove returns.

This ordering creates a race window. The switch's own regmap-irq thread remains active and can dispatch on an interrupt mapping that the driver has already torn down. When this happens, irq_find_mapping() returns 0, irq_to_desc() returns NULL, and handle_nested_irq() proceeds to lock desc->lock without validating the descriptor pointer. The kernel also emits a warning about PHYs that have not released their interrupts prior to the fault.

Root Cause

The root cause is redundant and incorrectly ordered interrupt mapping teardown [Null Pointer Dereference]. The regmap_del_irq_chip() function already disposes the same mappings after freeing the parent interrupt and before removing the domain. The explicit teardown in mt7530_remove_common() is both unnecessary and executed too early, leaving descriptors referenced by in-flight interrupt threads invalid. The fix removes the manual disposal and relies on regmap-irq to perform teardown in the correct order.

Attack Vector

The condition triggers during module unload or device removal of an MT7530-based switch. An attacker with the ability to unload the driver, or a system undergoing routine shutdown or hotplug sequencing, can encounter the fault. The vulnerability is a local reliability and availability issue rather than a remote code execution primitive. The vulnerability mechanism and corrective patches are described in the upstream kernel commits 0d80ba0, 2357c68, and f306e46.

Detection Methods for CVE-2026-98564

Indicators of Compromise

  • Kernel oops or NULL pointer dereference traces referencing handle_nested_irq, irq_find_mapping, or regmap_irq_thread during MT7530 driver teardown.
  • Kernel warnings about PHY interrupts not being released prior to the fault.
  • Unexpected network interface loss on systems using MT7530 switch chips after module unload or shutdown sequences.

Detection Strategies

  • Audit running kernel versions on devices that incorporate MediaTek MT7530 switch hardware and compare against the patched commit range.
  • Review dmesg and persistent kernel log archives for stack traces that intersect the mt7530 and regmap-irq subsystems.
  • Correlate device removal events, driver unload operations, and subsequent kernel faults in centralized logging.

Monitoring Recommendations

  • Forward /var/log/kern.log and journalctl -k output to a central log platform and alert on BUG:, Oops:, or WARNING: entries referencing mt7530 or regmap_irq.
  • Track kernel version inventory across embedded, networking, and IoT fleets to confirm patch coverage.
  • Monitor interface flap and switch availability metrics on MT7530-backed devices to detect post-teardown faults.

How to Mitigate CVE-2026-98564

Immediate Actions Required

  • Identify Linux-based devices that use the mt7530 DSA driver, including routers, access points, and embedded networking gear.
  • Apply vendor-provided kernel updates that include the upstream fix commits 0d80ba0, 2357c68, and f306e46.
  • Avoid repeated driver reloads or hotplug cycles on unpatched systems until updates are deployed.

Patch Information

The fix removes the redundant call to dispose per-PHY interrupt mappings from mt7530_remove_common(), allowing regmap_del_irq_chip() to perform teardown in the correct order after freeing the parent interrupt. Patches are available in the stable kernel tree via commits 0d80ba0, 2357c68, and f306e46. Downstream distribution and OEM firmware updates should be applied as they become available.

Workarounds

  • Keep the mt7530 driver loaded for the lifetime of the device to prevent entering the vulnerable teardown path.
  • Restrict administrative access that would permit unprivileged module unloads via rmmod or device unbind through sysfs.
  • Schedule planned maintenance windows for reboot cycles rather than relying on live driver removal on unpatched kernels.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.