drm/msm/dpu: check for null return of devm_kzalloc() in dpu_writeback_init()
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.1.166.2.36.3In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dpu: check for null return of devm_kzalloc() in dpu_writeback_init()
Because of the possilble failure of devm_kzalloc(), dpu_wb_conn might be NULL and will cause null pointer dereference later.
Therefore, it might be better to check it and directly return -ENOMEM.
Patchwork: https://patchwork.freedesktop.org/patch/512277/ [DB: fixed typo in commit message]
From the CVE record · Linux
In the Linux kernel’s drm/msm/dpu writeback initialization, a failed devm_kzalloc() call can leave dpu_wb_conn null and cause a later null pointer dereference. The input does not establish whether an attacker can trigger this condition or specify access or user-interaction requirements.
Engineers running the Linux kernel should check whether their version includes the fix; affected versions are not specified.