{"id":"CVE-2026-98565","state":"PUBLISHED","title":"net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621\n\nThe core and io supplies are only requested for ID_MT7530: both the\ndevm_regulator_get() in probe and the regulator_enable() in\nmt7530_setup() are guarded by the switch id, but mt7530_remove()\ndisables them unconditionally. On an MT7621 or an MT7531 both pointers\nare still NULL from devm_kzalloc(), so rmmod or a sysfs unbind calls\nregulator_disable() on NULL.","publishedAt":"2026-10-18T15:18:31.836Z","updatedAt":"2026-10-19T09:21:50.349Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"bd172580e624bac00d83abd5c4320d2e14d853bc","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"e9a5298532780ecdd05c3220f3e1e3067b3537c3","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"62c0e38b2e5034184d4502ce77bd178b29e59b83","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"aae2a1f1e3a0ac5eeb439262a2328a2a392413ac","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/mt7530-mdio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.1","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/mt7530-mdio.c"]}],"references":["https://git.kernel.org/stable/c/bd172580e624bac00d83abd5c4320d2e14d853bc","https://git.kernel.org/stable/c/e9a5298532780ecdd05c3220f3e1e3067b3537c3","https://git.kernel.org/stable/c/62c0e38b2e5034184d4502ce77bd178b29e59b83","https://git.kernel.org/stable/c/aae2a1f1e3a0ac5eeb439262a2328a2a392413ac","https://git.kernel.org/stable/c/c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98565.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98565","state":"PUBLISHED","datePublished":"2026-10-18T15:18:31.836Z","dateUpdated":"2026-10-19T09:21:50.349Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.357Z"},"containers":{"cna":{"title":"net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621\n\nThe core and io supplies are only requested for ID_MT7530: both the\ndevm_regulator_get() in probe and the regulator_enable() in\nmt7530_setup() are guarded by the switch id, but mt7530_remove()\ndisables them unconditionally. On an MT7621 or an MT7531 both pointers\nare still NULL from devm_kzalloc(), so rmmod or a sysfs unbind calls\nregulator_disable() on NULL."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"bd172580e624bac00d83abd5c4320d2e14d853bc","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"e9a5298532780ecdd05c3220f3e1e3067b3537c3","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"62c0e38b2e5034184d4502ce77bd178b29e59b83","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"aae2a1f1e3a0ac5eeb439262a2328a2a392413ac","versionType":"git"},{"version":"ddda1ac116c852bb969541ed53cffef7255c4961","status":"affected","lessThan":"c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/mt7530-mdio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.1","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/mt7530-mdio.c"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:21:50.349Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.6.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.18.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"7.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}