media: v4l2-async: Unregister sub-device if asc_list is empty
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-async: Unregister sub-device if asc_list is empty
When my em28xx USB device that uses the i2c tvp5150 driver is disconnected, it crashes.
The cause is that the tvp5150 i2c module uses v4l2_async, but the em28xx driver does not since it predates v4l2_async.
In that corner case sd->asc_list is empty, so v4l2_async_unregister_subdev() never calls v4l2_device_unregister_subdev().
Modify the code so that, if sd->asc_list is empty, v4l2_device_unregister_subdev() is still called.
From the CVE record · Linux
The Linux kernel’s v4l2-async code can fail to unregister a sub-device when its asc_list is empty. In the reported case, disconnecting an em28xx USB device that uses the tvp5150 I2C driver causes a crash. The described trigger requires physical device disconnection; the input does not specify an authentication requirement.
Engineers running Linux kernels with the em28xx and tvp5150 drivers should check their installations; affected versions are not specified.