net: ethernet: mtk_eth_soc: unregister net_devices in case of probe failure
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.112, 6.18.55, 6.6.158, 7.2.9
- CVEs
- CVE-2026-98620
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 19:45 UTC · Revision 1
Source evidence
net: ethernet: mtk_eth_soc: unregister net_devices in case of probe failure
core-osv · Original sourcePublished 18 Oct 2026, 15:19 UTC
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.
osv:CVE-2026-98620
Kernel
Fixed versions: 6.6.158, 6.12.112, 6.18.55, 7.2.9
Complete source record
{
"id": "a39f51a15fbda2ad6379a8959784717ba6e32057a53e94560c11dbe84c960c24",
"url": "https://osv.dev/vulnerability/CVE-2026-98620",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: ethernet: mtk_eth_soc: unregister net_devices in case of probe failure",
"summary": "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.",
"evidence": "osv:CVE-2026-98620",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.158",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.112",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.55",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98620",
"aliases": [
"CVE-2026-98620"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "8a8a9e89f801ce5d3d1d57ac48db678caf072147"
},
{
"fixed": "245bea0c7ab278150c70366bdeb69b901327133c"
},
{
"fixed": "ab3bde3b3e56331b4f53a1f6cf4e5e9d1c14c1a0"
},
{
"fixed": "7254b702e556158e34b4d7c168b5d8e7da5978af"
},
{
"fixed": "0fdb944d4df02223c67d5e65c4c134ecb57a5668"
},
{
"fixed": "310d1ac61a4d5a2ca8356a3a48d263acf54503ce"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98620.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.9.0"
},
{
"fixed": "6.6.158"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.112"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.55"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98620.json"
}
}
],
"modified": "2026-10-28T02:30:22.877844177Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0fdb944d4df02223c67d5e65c4c134ecb57a5668",
"https://git.kernel.org/stable/c/245bea0c7ab278150c70366bdeb69b901327133c",
"https://git.kernel.org/stable/c/310d1ac61a4d5a2ca8356a3a48d263acf54503ce",
"https://git.kernel.org/stable/c/7254b702e556158e34b4d7c168b5d8e7da5978af",
"https://git.kernel.org/stable/c/ab3bde3b3e56331b4f53a1f6cf4e5e9d1c14c1a0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98620.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98620",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98620.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98620",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489296,
"published_at": "2026-10-18T15:19:40.32+00:00"
}