drm/msm/adreno: fix userspace-triggered crash on a2xx-a4xx
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 |
|
|
6.18.347.0.117.1In the Linux kernel, the following vulnerability has been resolved:
drm/msm/adreno: fix userspace-triggered crash on a2xx-a4xx
Before a5xx Adreno driver will not try fetching UBWC params (because those generations didn't support UBWC anyway), however it's still possible to query UBWC-related params from the userspace, triggering possible NULL pointer dereference. Check for UBWC config in adreno_get_param() and return sane defaults if there is none.
Patchwork: https://patchwork.freedesktop.org/patch/717778/
From the CVE record · Linux
The Linux kernel’s Adreno driver can dereference a NULL pointer when userspace queries UBWC-related parameters on a2xx–a4xx hardware. A local userspace process can trigger a kernel crash through such a query; the input does not specify any additional authorization or user-interaction requirements.
Engineers running Linux kernels with the Adreno driver on a2xx–a4xx hardware should check whether their kernel includes the fix; affected versions were not specified.