Skip to content
Heist/ feed
Back to feed
UnratedFix available

net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621 The core and io supplies are only requested for ID_MT7530: both the devm_regulator_get() in probe and the regulator_enable() in mt7530_setup() are guarded by the switch id, but mt7530_remove() disables them unconditionally. On an MT7621 or an MT7531 both pointers are still NULL from devm_kzalloc(), so rmmod or a sysfs unbind calls regulator_disable() on NULL.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.112, 6.18.55, 6.6.158, 7.2.9
CVEs
CVE-2026-98565
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:07 UTC · Revision 1

Source evidence

net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621

core-osv · Original source

Published 18 Oct 2026, 15:18 UTC

In the Linux kernel, the following vulnerability has been resolved: net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621 The core and io supplies are only requested for ID_MT7530: both the devm_regulator_get() in probe and the regulator_enable() in mt7530_setup() are guarded by the switch id, but mt7530_remove() disables them unconditionally. On an MT7621 or an MT7531 both pointers are still NULL from devm_kzalloc(), so rmmod or a sysfs unbind calls regulator_disable() on NULL.

osv:CVE-2026-98565

Kernel

Fixed versions: 6.6.158, 6.12.112, 6.18.55, 7.2.9

Complete source record
{
  "id": "655af59a5cc36efdb52bd934041b7fc4e7cf0343120c30055c240b1be510553d",
  "url": "https://osv.dev/vulnerability/CVE-2026-98565",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621 The core and io supplies are only requested for ID_MT7530: both the devm_regulator_get() in probe and the regulator_enable() in mt7530_setup() are guarded by the switch id, but mt7530_remove() disables them unconditionally. On an MT7621 or an MT7531 both pointers are still NULL from devm_kzalloc(), so rmmod or a sysfs unbind calls regulator_disable() on NULL.",
    "evidence": "osv:CVE-2026-98565",
    "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-98565",
      "aliases": [
        "CVE-2026-98565"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ddda1ac116c852bb969541ed53cffef7255c4961"
                },
                {
                  "fixed": "bd172580e624bac00d83abd5c4320d2e14d853bc"
                },
                {
                  "fixed": "e9a5298532780ecdd05c3220f3e1e3067b3537c3"
                },
                {
                  "fixed": "62c0e38b2e5034184d4502ce77bd178b29e59b83"
                },
                {
                  "fixed": "aae2a1f1e3a0ac5eeb439262a2328a2a392413ac"
                },
                {
                  "fixed": "c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98565.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.1.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-98565.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.183069719Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/62c0e38b2e5034184d4502ce77bd178b29e59b83",
        "https://git.kernel.org/stable/c/aae2a1f1e3a0ac5eeb439262a2328a2a392413ac",
        "https://git.kernel.org/stable/c/bd172580e624bac00d83abd5c4320d2e14d853bc",
        "https://git.kernel.org/stable/c/c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4",
        "https://git.kernel.org/stable/c/e9a5298532780ecdd05c3220f3e1e3067b3537c3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98565.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-98565",
        "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-98565.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-98565",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 517624,
  "published_at": "2026-10-18T15:18:31.836+00:00"
}