---
id: CVE-2026-98565
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…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 <
    bd172580e624bac00d83abd5c4320d2e14d853bc
  - >-
    Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 <
    e9a5298532780ecdd05c3220f3e1e3067b3537c3
  - >-
    Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 <
    62c0e38b2e5034184d4502ce77bd178b29e59b83
  - >-
    Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 <
    aae2a1f1e3a0ac5eeb439262a2328a2a392413ac
  - >-
    Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 <
    c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4
  - Linux 5.1
published: '2026-10-18'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T09:21:50.349Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-98565'
references:
  - url: 'https://git.kernel.org/stable/c/bd172580e624bac00d83abd5c4320d2e14d853bc'
  - url: 'https://git.kernel.org/stable/c/e9a5298532780ecdd05c3220f3e1e3067b3537c3'
  - url: 'https://git.kernel.org/stable/c/62c0e38b2e5034184d4502ce77bd178b29e59b83'
  - url: 'https://git.kernel.org/stable/c/aae2a1f1e3a0ac5eeb439262a2328a2a392413ac'
  - url: 'https://git.kernel.org/stable/c/c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4'
tags:
  - cve.org
ingestedAt: '2026-10-18T15:45:12.261Z'
---

## Overview

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.

## Affected

- `Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 < bd172580e624bac00d83abd5c4320d2e14d853bc`
- `Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 < e9a5298532780ecdd05c3220f3e1e3067b3537c3`
- `Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 < 62c0e38b2e5034184d4502ce77bd178b29e59b83`
- `Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 < aae2a1f1e3a0ac5eeb439262a2328a2a392413ac`
- `Linux >= ddda1ac116c852bb969541ed53cffef7255c4961 < c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4`
- `Linux 5.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
