# CVE-2024-53056: drm/mediatek: Fix potential NULL dereference in mtk_crtc_destroy()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-11-19T17:19:39.646Z
- Modified: 2026-10-30T13:17:41.910Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.17 before 6.11.7; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/32ac6dccf561af97f20a3831430577d8a978e672>
- <https://git.kernel.org/stable/c/fb05e973698f4af008c7fb6e0cfa6a2fa1d98409>
- <https://git.kernel.org/stable/c/c60583a87cb4a85b69d1f448f0be5eb6ec62cbb2> (patch)
- <https://git.kernel.org/stable/c/4018651ba5c409034149f297d3dd3328b91561fd> (patch)

## Sources

- CVE List: [CVE-2024-53056](https://www.cve.org/CVERecord?id=CVE-2024-53056), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2024-53056](https://nvd.nist.gov/vuln/detail/CVE-2024-53056), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2024-53056 · Whole record: https://cve.day/CVE-2024-53056.json · Rebuilt by cve.day 2026-11-25T22:58:48.790Z
