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
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.