CVE-2022-49827 Information
Description
In the Linux kernel the following vulnerability has been resolved:
drm: Fix potential null-ptr-deref in drm_vblank_destroy_worker()
drm_vblank_init() call drmm_add_action_or_reset() with drm_vblank_init_release() as action. If __drmm_add_action() failed will directly call drm_vblank_init_release() with the vblank whose worker is NULL. As the resule a null-ptr-deref will happen in kthread_destroy_worker(). Add the NULL check before calling drm_vblank_destroy_worker().
BUG: null-ptr-deref
KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f]
CPU: 5 PID: 961 Comm: modprobe Not tainted 6.0.0-11331-gd465bff130bf-dirty
RIP: 0010:kthread_destroy_worker+0x25/0xb0
Call Trace:
Reference
https://git.kernel.org/stable/c/1d160dfb3fdf11ba9447e862c548447f91f4e74a https://git.kernel.org/stable/c/3acd2016421b2e628acad65495d15493bf7a3bc3 https://git.kernel.org/stable/c/4979524f5a2a8210e87fde2f642b0dc060860821 https://git.kernel.org/stable/c/e884a6c2d49a6c12761e5bed851e9fe93bd923a1
Share on: