CVE-2026-98620

net: ethernet: mtk_eth_soc: unregister net_devices in case of probe failure

State
Published
Severity
Not scored
Published
Oct 18, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

net: ethernet: mtk_eth_soc: unregister net_devices in case of probe failure

If register_netdev() fails for one of the MTK_MAX_DEVS devices in mtk_probe(), the error path jumps to err_deinit_ppe, skipping mtk_unreg_dev(). The previously registered net_devices are then freed by mtk_free_dev() while still in NETREG_REGISTERED state, hitting the BUG_ON(dev->reg_state != NETREG_UNREGISTERED).

Route the register_netdev() failure to err_unreg_netdev so the net_devices registered so far are properly unregistered before being freed.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8a8a9e89f801ce5d3d1d57ac48db678caf072147 to before 245bea0c7ab278150c70366bdeb69b901327133cAffected
  • 8a8a9e89f801ce5d3d1d57ac48db678caf072147 to before ab3bde3b3e56331b4f53a1f6cf4e5e9d1c14c1a0Affected
  • 8a8a9e89f801ce5d3d1d57ac48db678caf072147 to before 7254b702e556158e34b4d7c168b5d8e7da5978afAffected
  • 8a8a9e89f801ce5d3d1d57ac48db678caf072147 to before 0fdb944d4df02223c67d5e65c4c134ecb57a5668Affected
  • 8a8a9e89f801ce5d3d1d57ac48db678caf072147 to before 310d1ac61a4d5a2ca8356a3a48d263acf54503ceAffected
LinuxLinux
  • 4.9Affected
  • before 4.9Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.55 through 6.18.*Not affected
  • 7.2.9 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.