# CVE-2022-49506: drm/mediatek: Add vblank register/unregister callback functions

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:38.168Z
- Modified: 2026-06-17T05:18:16.370Z
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.12 before 5.15.54; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## References

- <https://git.kernel.org/stable/c/8a2dbdeccef6de47565638abdf3c25f41cdffc37> (patch)
- <https://git.kernel.org/stable/c/8a265d9838bc3c63579002d55c2b2c655c4f8f26> (patch)
- <https://git.kernel.org/stable/c/3a4027b5971fe2a94e32754f007d9d3c12c68ad1> (patch)
- <https://git.kernel.org/stable/c/b74d921b900b6ce38c6247c0a1c86be9f3746493> (patch)

## Sources

- CVE List: [CVE-2022-49506](https://www.cve.org/CVERecord?id=CVE-2022-49506), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49506](https://nvd.nist.gov/vuln/detail/CVE-2022-49506), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49506 · Whole record: https://cve.day/CVE-2022-49506.json · Rebuilt by cve.day 2026-11-25T22:58:20.697Z
