drm/mediatek: dp: Only trigger DRM HPD events if bridge is attached
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/mediatek: dp: Only trigger DRM HPD events if bridge is attached
The MediaTek DisplayPort interface bridge driver starts its interrupts as soon as its probed. However when the interrupts trigger the bridge might not have been attached to a DRM device. As drm_helper_hpd_irq_event() does not check whether the passed in drm_device is valid or not, a NULL pointer passed in results in a kernel NULL pointer dereference in it.
Check whether the bridge is attached and only trigger an HPD event if it is.
From the CVE record · Linux
The MediaTek DisplayPort bridge driver can trigger a hot-plug event before its bridge is attached to a DRM device, causing a kernel NULL pointer dereference. This occurs when an interrupt fires during that window; the input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the MediaTek DisplayPort bridge driver should check their installations; affected versions are not specified.