Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix deadlock if uvc_status_stop is called from async_ctrl.work If a UVC camera has an asynchronous control, uvc_status_stop may be called from async_ctrl.work: uvc_ctrl_status_event_work() uvc_ctrl_status_event() uvc_ctrl_clear_handle() uvc_pm_put() uvc_status_put() uvc_status_stop() cancel_work_sync() This will cause a deadlock, since cancel_work_sync will wait for uvc_ctrl_status_event_work to complete before returning. Fix this by returning early from uvc_status_stop if we are currently in the work function. flush_status now remains false until uvc_status_start is called again, ensuring that uvc_ctrl_status_event_work won't resubmit the URB.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected a32d9c41bdb86e09ce731aa5fd3add89ac2103a5 before 3659deaf7bf690510899a73906b772740d94342c; affected a32d9c41bdb86e09ce731aa5fd3add89ac2103a5 before 7f6c5fe1633272c926361b73d83dfc6ae01b1504; affected a32d9c41bdb86e09ce731aa5fd3add89ac2103a5 before 6d27f92c54ce28cfbd2a8a479a96d6f4a781b7d2 |
| Linux / Linux | affected 6.16; unaffected 0 before 6.16; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.