drm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup
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: check for valid hw_pp in dpu_encoder_helper_phys_cleanup
The commit 8b45a26f2ba9 ("drm/msm/dpu: reserve cdm blocks for writeback in case of YUV output") introduced a smatch warning about another conditional block in dpu_encoder_helper_phys_cleanup() which had assumed hw_pp will always be valid which may not necessarily be true.
Lets fix the other conditional block by making sure hw_pp is valid before dereferencing it.
Patchwork: https://patchwork.freedesktop.org/patch/574878/
From the CVE record · Linux
The Linux kernel's drm/msm/dpu cleanup function may dereference hw_pp when it is invalid. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Teams running Linux kernels with the affected drm/msm/dpu code should check their deployments; affected versions are not specified.