drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset
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/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset
The drm_atomic_get_new_connector_state() can return NULL if the connector is not part of the atomic state. Add a check to prevent a NULL pointer dereference.
This follows the same pattern used in dpu_encoder_update_topology() within the same file, which checks for NULL before using conn_state.
Patchwork: https://patchwork.freedesktop.org/patch/665188/
From the CVE record · Linux
The Linux kernel's drm/msm/dpu code can dereference a NULL pointer when a connector is not part of the atomic state. This could cause a kernel crash; the input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels with drm/msm/dpu should check their versions against the Linux kernel advisory; affected versions were not specified.