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-98620 Overview
CVE-2026-98620 is a Linux kernel vulnerability in the MediaTek Ethernet System-on-Chip (mtk_eth_soc) network driver. The flaw resides in the mtk_probe() function, which fails to properly unregister previously registered net_device structures when register_netdev() returns an error for any of the MTK_MAX_DEVS devices. The error path jumps directly to err_deinit_ppe, bypassing mtk_unreg_dev(). The already-registered devices are then freed by mtk_free_dev() while still in the NETREG_REGISTERED state, triggering a BUG_ON(dev->reg_state != NETREG_UNREGISTERED) kernel assertion.
Critical Impact
A failed probe of the MediaTek Ethernet driver triggers a kernel BUG_ON assertion, causing a kernel panic and denial of service on affected systems.
Affected Products
- Linux kernel versions containing the mtk_eth_soc driver prior to the referenced stable commits
- Systems using MediaTek Ethernet SoC network hardware
- Embedded devices and routers built on MediaTek platforms with Linux
Discovery Timeline
- 2026-10-18 - CVE-2026-98620 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98620
Vulnerability Analysis
The vulnerability lies in error-path handling within the mtk_probe() function of the mtk_eth_soc driver. The driver iterates through up to MTK_MAX_DEVS network devices, calling register_netdev() on each one. When registration fails for one device, the code jumps to the err_deinit_ppe cleanup label. This label skips mtk_unreg_dev(), which is responsible for unregistering previously succeeded net_device registrations.
Subsequent execution reaches mtk_free_dev(), which attempts to free net_device structures that remain in the NETREG_REGISTERED state. The network stack enforces a BUG_ON(dev->reg_state != NETREG_UNREGISTERED) check to prevent freeing live network devices. Hitting this assertion triggers a kernel panic.
Root Cause
The root cause is improper error-path cleanup in a multi-device probe routine. The driver fails to maintain state consistency between the registration and teardown phases. This is a resource-management defect where cleanup labels skip the required unregistration step before freeing the device structures.
Attack Vector
The condition requires register_netdev() to fail during driver probing. This typically happens under resource exhaustion, name collisions, or hardware initialization failures. The flaw is reachable at module load time or during device hot-plug events. Exploitation leading to arbitrary code execution has not been demonstrated; the observable effect is a kernel crash.
// No verified exploit code is available for this issue.
// See the stable kernel commits in the references for the fix diff.
Detection Methods for CVE-2026-98620
Indicators of Compromise
- Kernel panic messages referencing BUG_ON triggered in mtk_free_dev() or net_device teardown paths
- dmesg entries showing register_netdev() failures followed by panic traces inside the mtk_eth_soc driver
- Unexpected system reboots on MediaTek-based platforms coinciding with network driver initialization
Detection Strategies
- Monitor kernel logs for stack traces that include mtk_probe, mtk_free_dev, and register_netdev symbols
- Correlate boot-time crash reports with the installed kernel version against the fixed commits
- Audit kernel package inventories to identify hosts running vulnerable mtk_eth_soc builds
Monitoring Recommendations
- Centralize kernel log collection from embedded and router fleets using MediaTek SoCs
- Alert on repeated probe failures or panic signatures within network driver initialization
- Track kernel version patch status across Linux hosts to confirm remediation deployment
How to Mitigate CVE-2026-98620
Immediate Actions Required
- Apply the stable kernel updates containing the fix commits referenced below
- Rebuild and redeploy custom kernels for embedded systems that use the mtk_eth_soc driver
- Inventory MediaTek-based network devices and prioritize those exposed to repeated probe cycles
Patch Information
The fix routes the register_netdev() failure path to err_unreg_netdev so that previously registered net_devices are properly unregistered before being freed. Patches are available in the following stable kernel commits: Kernel Git Commit 0fdb944, Kernel Git Commit 245bea0, Kernel Git Commit 310d1ac, Kernel Git Commit 7254b70, and Kernel Git Commit ab3bde3.
Workarounds
- Blacklist the mtk_eth_soc module on systems where MediaTek Ethernet is not required
- Reduce probe-time contention by minimizing conflicting network interface naming during boot
- Isolate affected hosts from automated driver reload workflows until the patched kernel is deployed
# Verify the running kernel version and check for the mtk_eth_soc driver
uname -r
modinfo mtk_eth_soc | grep -E 'filename|version'
# Blacklist as a temporary workaround on non-essential systems
echo 'blacklist mtk_eth_soc' | sudo tee /etc/modprobe.d/blacklist-mtk_eth_soc.conf
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

