wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.396.15.76.16In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7925: Fix null-ptr-deref in mt7925_thermal_init()
devm_kasprintf() returns NULL on error. Currently, mt7925_thermal_init() does not check for this case, which results in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue.
From the CVE record · Linux
In the Linux kernel's mt76 mt7925 driver, mt7925_thermal_init() can dereference a NULL pointer if devm_kasprintf() fails. The input does not describe how an attacker could trigger this failure or specify network, authentication, or user-interaction conditions.
Engineers running Linux kernels with the mt76 mt7925 driver should check their installations; affected versions are not specified.