drm/panthor: Fix NULL pointer dereference on panthor_fw_unplug
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:
drm/panthor: Fix NULL pointer dereference on panthor_fw_unplug
This patch removes the MCU halt and wait for halt procedures during panthor_fw_unplug() as the MCU can be in a variety of states or the FW may not even be loaded/initialized at all, the latter of which can lead to a NULL pointer dereference.
It should be safe on unplug to just disable the MCU without waiting for it to halt as it may not be able to.
From the CVE record · Linux
The Linux kernel’s drm/panthor driver can dereference a NULL pointer during panthor_fw_unplug() if firmware has not been loaded or initialized. This can occur during unplug; the input does not specify whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels with the drm/panthor driver should check their versions; affected versions are not specified.