drm/msm/a6xx: move preempt_prepare_postamble after error check
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/a6xx: move preempt_prepare_postamble after error check
Move the call to preempt_prepare_postamble() after verifying that preempt_postamble_ptr is valid. If preempt_postamble_ptr is NULL, dereferencing it in preempt_prepare_postamble() would lead to a crash.
This change avoids calling the preparation function when the postamble allocation has failed, preventing potential NULL pointer dereference and ensuring proper error handling.
Patchwork: https://patchwork.freedesktop.org/patch/687659/
From the CVE record · Linux
The Linux kernel’s drm/msm/a6xx code can dereference a NULL pointer if postamble allocation fails, causing a crash. The input does not specify whether an attacker can trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with drm/msm/a6xx should check their versions; affected versions are not specified.