wifi: mt76: mt7996: Add NULL check in mt7996_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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7996: Add NULL check in mt7996_thermal_init
devm_kasprintf() can return a NULL pointer on failure,but this returned value in mt7996_thermal_init() is not checked. Add NULL check in mt7996_thermal_init(), to handle kernel NULL pointer dereference error.
From the CVE record · Linux
The Linux kernel’s mt76 mt7996 driver does not check whether devm_kasprintf() fails during thermal initialization, which can cause a NULL pointer dereference. The input does not establish whether an attacker can trigger the failure or specify any access or user-interaction requirements.
Engineers running Linux kernels with the mt76 mt7996 driver should check their installations; affected versions are not specified.