{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-49506","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-02-26T02:08:31.586Z","datePublished":"2025-02-26T02:13:38.168Z","dateUpdated":"2025-05-04T08:39:24.277Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2025-05-04T08:39:24.277Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: Add vblank register/unregister callback functions\n\nWe encountered a kernel panic issue that callback data will be NULL when\nit's using in ovl irq handler. There is a timing issue between\nmtk_disp_ovl_irq_handler() and mtk_ovl_disable_vblank().\n\nTo resolve this issue, we use the flow to register/unregister vblank cb:\n- Register callback function and callback data when crtc creates.\n- Unregister callback function and callback data when crtc destroies.\n\nWith this solution, we can assure callback data will not be NULL when\nvblank is disable."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/mediatek/mtk_disp_drv.h","drivers/gpu/drm/mediatek/mtk_disp_ovl.c","drivers/gpu/drm/mediatek/mtk_disp_rdma.c","drivers/gpu/drm/mediatek/mtk_drm_crtc.c","drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c","drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h"],"versions":[{"version":"9b0704988b151824a51133dc4c921f4273c5d839","lessThan":"8a2dbdeccef6de47565638abdf3c25f41cdffc37","status":"affected","versionType":"git"},{"version":"9b0704988b151824a51133dc4c921f4273c5d839","lessThan":"8a265d9838bc3c63579002d55c2b2c655c4f8f26","status":"affected","versionType":"git"},{"version":"9b0704988b151824a51133dc4c921f4273c5d839","lessThan":"3a4027b5971fe2a94e32754f007d9d3c12c68ad1","status":"affected","versionType":"git"},{"version":"9b0704988b151824a51133dc4c921f4273c5d839","lessThan":"b74d921b900b6ce38c6247c0a1c86be9f3746493","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/mediatek/mtk_disp_drv.h","drivers/gpu/drm/mediatek/mtk_disp_ovl.c","drivers/gpu/drm/mediatek/mtk_disp_rdma.c","drivers/gpu/drm/mediatek/mtk_drm_crtc.c","drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c","drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h"],"versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","status":"unaffected","versionType":"semver"},{"version":"5.15.54","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.14","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18.3","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.15.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.17.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.18.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.19"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/8a2dbdeccef6de47565638abdf3c25f41cdffc37"},{"url":"https://git.kernel.org/stable/c/8a265d9838bc3c63579002d55c2b2c655c4f8f26"},{"url":"https://git.kernel.org/stable/c/3a4027b5971fe2a94e32754f007d9d3c12c68ad1"},{"url":"https://git.kernel.org/stable/c/b74d921b900b6ce38c6247c0a1c86be9f3746493"}],"title":"drm/mediatek: Add vblank register/unregister callback functions","x_generator":{"engine":"bippy-1.2.0"}}}}