Bug 2327330 (CVE-2024-53056) - CVE-2024-53056 kernel: drm/mediatek: Fix potential NULL dereference in mtk_crtc_destroy()
Summary: CVE-2024-53056 kernel: drm/mediatek: Fix potential NULL dereference in mtk_cr...
Keywords:
Status: NEW
Alias: CVE-2024-53056
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2327492
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-19 18:01 UTC by OSIDB Bzimport
Modified: 2024-11-21 19:06 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-19 18:01:15 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.