Description
In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix NULL deref on events for uninitialized controls A null-ptr-deref exists in v6.12.105 and upstream. KASAN crash log: KASAN: null-ptr-deref in range [0x0000000000000080-0x0000000000000087] Workqueue: events uvc_ctrl_status_event_work RIP: 0010:uvc_ctrl_status_event+0x105/0x280 uvc_ctrl_status_event_work+0x82/0x240 process_one_work+0x66f/0x10b0 XU controls are initialized lazily, on the first UVCIOC_CTRL_MAP or UVCIOC_CTRL_QUERY. Until then ctrl->info is all zeroes, so info.mappings is not a valid list head, list_empty() returns false, and uvc_ctrl_status_event() walks it from a NULL next pointer.
Affected products and versions
References
- git.kernel.org/stable/c/0fb0cd06aeb77012055079fd918c51afa1e2f645
- git.kernel.org/stable/c/e380bb5ea2c143d1618b16ba3475f4e9dfacf247
- git.kernel.org/stable/c/211d6ac1ae13141b17a5fd0ec25daf87df9d4e78
- git.kernel.org/stable/c/3f8d3d4c57f2e8f976e841f904efbf9aec7f63dd
- git.kernel.org/stable/c/4bb37004309e7d372d371af110fa8cd993162bdd
- git.kernel.org/stable/c/72af96b39afd6faa77d037080a15405336acd05c
- git.kernel.org/stable/c/2de2a3831765bdbae600057f9ac0ea6ee795d4cc
- git.kernel.org/stable/c/daa379e2b74d6c10ba4e3b56eeca5aa8c8704fca
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.