5.5medium
drm/mediatek: Fix potential NULL dereference in mtk_crtc_destroy()
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.25% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: Fix potential NULL dereference in mtk_crtc_destroy() In mtk_crtc_create(), if the call to mbox_request_channel() fails then we set the "mtk_crtc->cmdq_client.chan" pointer to NULL. In that situation, we do not call cmdq_pkt_create(). During the cleanup, we need to check if the "mtk_crtc->cmdq_client.chan" is NULL first before calling cmdq_pkt_destroy(). Calling cmdq_pkt_destroy() is unnecessary if we didn't call cmdq_pkt_create() and it will result in a NULL pointer dereference.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7627122fd1c06800a1fe624e9fb3c269796115e8 before 32ac6dccf561af97f20a3831430577d8a978e672, from 7627122fd1c06800a1fe624e9fb3c269796115e8 before fb05e973698f4af008c7fb6e0cfa6a2fa1d98409, from 7627122fd1c06800a1fe624e9fb3c269796115e8 before c60583a87cb4a85b69d1f448f0be5eb6ec62cbb2, from 7627122fd1c06800a1fe624e9fb3c269796115e8 before 4018651ba5c409034149f297d3dd3328b91561fd, 2c4396693698e876e559768d3d3a150c672ec384, from 5.15.54 before 5.16, 5.17 Not affected: before 5.17, from 6.1.191 up to 6.1.*, from 6.6.158 up to 6.6.*, from 6.11.7 up to 6.11.*, from 6.12 up to * | CVE List |
| linux linux_kernel | from 5.17 before 6.11.7, 6.12 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: Fix potential NULL dereference in mtk_crtc_destroy() In mtk_crtc_create(), if the call to mbox_request_channel() fails then we set the "mtk_crtc->cmdq_client.chan" pointer to NULL. In that situation, we do not call cmdq_pkt_create(). During the cleanup, we need to check if the "mtk_crtc->cmdq_client.chan" is NULL first before calling cmdq_pkt_destroy(). Calling cmdq_pkt_destroy() is unnecessary if we didn't call cmdq_pkt_create() and it will result in a NULL pointer dereference.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/mediatek: Se corrige la posible desreferenciación NULL en mtk_crtc_destroy() En mtk_crtc_create(), si la llamada a mbox_request_channel() falla, establecemos el puntero "mtk_crtc->cmdq_client.chan" en NULL. En esa situación, no llamamos a cmdq_pkt_create(). Durante la limpieza, debemos verificar si "mtk_crtc->cmdq_client.chan" es NULL primero antes de llamar a cmdq_pkt_destroy(). Llamar a cmdq_pkt_destroy() es innecesario si no llamamos a cmdq_pkt_create() y dará como resultado una desreferenciación del puntero NULL.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-53056 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2024-53056 changed 2026-10-30 | Public domain |