net: dsa: mt7530: fix NULL dereference on unbind of MT7531 and MT7621
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.158, 6.12.112, 6.18.55, 7.2.9
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From ddda1ac116c852bb969541ed53cffef7255c4961 · fixed in bd172580e624bac00d83abd5c4320d2e14d853bc; From ddda1ac116c852bb969541ed53cffef7255c4961 · fixed in e9a5298532780ecdd05c3220f3e1e3067b3537c3; From ddda1ac116c852bb969541ed53cffef7255c4961 · fixed in 62c0e38b2e5034184d4502ce77bd178b29e59b83; From ddda1ac116c852bb969541ed53cffef7255c4961 · fixed in aae2a1f1e3a0ac5eeb439262a2328a2a392413ac; From ddda1ac116c852bb969541ed53cffef7255c4961 · fixed in c2cdef41e0b4d8ed23a5b41e6ad4e64594e055e4
- Linux Linux
5.1
- KernelLinux
From 5.1.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9