CVE-2022-49506
JSON

5.5medium

drm/mediatek: Add vblank register/unregister callback functions

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.28% (higher than 13% of CVEs)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 9b0704988b151824a51133dc4c921f4273c5d839 before 8a2dbdeccef6de47565638abdf3c25f41cdffc37, from 9b0704988b151824a51133dc4c921f4273c5d839 before 8a265d9838bc3c63579002d55c2b2c655c4f8f26, from 9b0704988b151824a51133dc4c921f4273c5d839 before 3a4027b5971fe2a94e32754f007d9d3c12c68ad1, from 9b0704988b151824a51133dc4c921f4273c5d839 before b74d921b900b6ce38c6247c0a1c86be9f3746493, 5.12
Not affected: before 5.12, from 5.15.54 up to 5.15.*, from 5.17.14 up to 5.17.*, from 5.18.3 up to 5.18.*, from 5.19 up to *
CVE List
linux linux_kernelfrom 5.12 before 5.15.54, from 5.16 before 5.17.14, from 5.18 before 5.18.3NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/mediatek: Agregar funciones de devolución de llamada de registro/cancelación de vblank Encontramos un problema de pánico del kernel que indicaba que los datos de devolución de llamada serían NULL cuando se usaban en el controlador de irq de ovl. Hay un problema de sincronización entre mtk_disp_ovl_irq_handler() y mtk_ovl_disable_vblank(). Para resolver este problema, usamos el flujo para registrar/cancelar el cb de vblank: - Registrar la función de devolución de llamada y los datos de devolución de llamada cuando se crea crtc. - Cancelar la función de devolución de llamada y los datos de devolución de llamada cuando se destruye crtc. Con esta solución, podemos asegurar que los datos de devolución de llamada no serían NULL cuando se deshabilita vblank.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49506 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49506 changed 2026-06-17Public domain