drm/panthor: Fix UAF race between device unplug and FW event processing
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 UAF race between device unplug and FW event processing
The function panthor_fw_unplug() will free the FW memory sections. The problem is that there could still be pending FW events which are yet not handled at this point. process_fw_events_work() can in this case try to access said freed memory.
Simply call disable_work_sync() to both drain and prevent future invocation of process_fw_events_work().
From the CVE record · Linux
The Linux kernel’s drm/panthor driver has a use-after-free race between device unplug and firmware event processing. Pending firmware events can access memory freed during unplug. The input does not specify how an attacker could trigger the race or whether authentication or user interaction is required.
Engineers running Linux kernels with the drm/panthor driver should check their versions; affected versions are not specified.