Bug 2348034 (CVE-2022-49506) - CVE-2022-49506 kernel: drm/mediatek: Add vblank register/unregister callback functions
Summary: CVE-2022-49506 kernel: drm/mediatek: Add vblank register/unregister callback ...
Keywords:
Status: NEW
Alias: CVE-2022-49506
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:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:15 UTC by OSIDB Bzimport
Modified: 2025-02-27 09:06 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:15:18 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/mediatek: Add vblank register/unregister callback functions

We encountered a kernel panic issue that callback data will be NULL when
it's using in ovl irq handler. There is a timing issue between
mtk_disp_ovl_irq_handler() and mtk_ovl_disable_vblank().

To resolve this issue, we use the flow to register/unregister vblank cb:
- Register callback function and callback data when crtc creates.
- Unregister callback function and callback data when crtc destroies.

With this solution, we can assure callback data will not be NULL when
vblank is disable.

Comment 1 Avinash Hanwate 2025-02-26 20:55:35 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022608-CVE-2022-49506-2808@gregkh/T


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