media: usbtv: Remove useless locks in usbtv_video_free()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f3d27f34fdd7701e499617d2c1d94480a98f6d07 · < 65e6a2773d655172143cc0b927cdc89549842895| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: usbtv: Remove useless locks in usbtv_video_free()
Remove locks calls in usbtv_video_free() because are useless and may led to a deadlock as reported here: https://syzkaller.appspot.com/x/bisect.txt?x=166dc872180000 Also remove usbtv_stop() call since it will be called when unregistering the device.
Before 'c838530d230b' this issue would only be noticed if you disconnect while streaming and now it is noticeable even when disconnecting while not streaming.
[hverkuil: fix minor spelling mistake in log message]
From the CVE record · Linux
The Linux kernel’s usbtv video cleanup can deadlock when a device is disconnected. Before commit c838530d230b, this was noticeable only when disconnecting while streaming; afterward, it can also occur when disconnecting while not streaming. The input does not specify authentication requirements.
Engineers running Linux kernels with the usbtv driver should check whether their kernel includes the fix; affected versions are not specified.