drm/msm/dpu: invalid parameter check in dpu_setup_dspp_pcc
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: invalid parameter check in dpu_setup_dspp_pcc
The function performs a check on the "ctx" input parameter, however, it is used before the check.
Initialize the "base" variable after the sanity check to avoid a possible NULL pointer dereference.
Addresses-Coverity-ID: 1493866 ("Null pointer dereference")
From the CVE record · Linux
The Linux kernel’s dpu_setup_dspp_pcc function uses the ctx parameter before checking whether it is valid. If ctx is NULL, this could cause a NULL pointer dereference; the input does not establish how an attacker could trigger it or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their build includes the affected drm/msm/dpu code; affected versions are not specified.