CVE-2024-53056: drm/mediatek: Fix potential NULL dereference in mtk_crtc_destroy()
In the Linux kernel, the following vulnerability has been resolved:
drm/mediatek: Fix potential NULL dereference in mtkcrtcdestroy()
In mtkcrtccreate(), if the call to mboxrequestchannel() fails then we set the "mtkcrtc->cmdqclient.chan" pointer to NULL. In that situation, we do not call cmdqpktcreate().
During the cleanup, we need to check if the "mtkcrtc->cmdqclient.chan" is NULL first before calling cmdqpktdestroy(). Calling cmdqpktdestroy() is unnecessary if we didn't call cmdqpktcreate() and it will result in a NULL pointer dereference.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.11.7-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.191 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.158 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.11.7 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1 - Upgrade
Upgrade
ubuntu/linux-azure-6.11to a version that resolves this vulnerability.Fixed in 6.11.0-1012.12~24.04.1 - Upgrade
Upgrade
ubuntu/linux-gcp-6.11to a version that resolves this vulnerability.Fixed in 6.11.0-1011.11~24.04.1 - Upgrade
Upgrade
ubuntu/linux-nvidia-6.11to a version that resolves this vulnerability.Fixed in 6.11.0-1007.7 - Upgrade
Upgrade
ubuntu/linux-oem-6.11to a version that resolves this vulnerability.Fixed in 6.11.0-1015.15 - Compensating control
In drm/mediatek's mtk_crtc_destroy() cleanup, check whether mtk_crtc->cmdq_client.chan is NULL before calling cmdq_pkt_destroy(); skip cmdq_pkt_destroy() when the channel is NULL.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-53056?
CVE-2024-53056 is classified as a moderate severity vulnerability in the Linux kernel.
How do I fix CVE-2024-53056?
To fix CVE-2024-53056, update the Linux kernel to version 6.11.7 or later.
What versions of the Linux kernel are affected by CVE-2024-53056?
CVE-2024-53056 affects Linux kernel versions between 5.17 and 6.12-rc5.
Can CVE-2024-53056 lead to system instability?
Yes, CVE-2024-53056 can potentially cause system instability due to a NULL dereference.
Is CVE-2024-53056 limited to specific Linux distributions?
CVE-2024-53056 impacts any Linux distribution using the affected versions of the Linux kernel.