usb: gadget: uvc: Fix null pointer dereference in uvcg_video_init()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.507.2.47.3In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: uvc: Fix null pointer dereference in uvcg_video_init()
In uvcg_video_init(), if kthread_run_worker() fails, the error logged uses uvcg_err(), however, the pointer it uses: video->uvc is not assigned at this point, triggering a null pointer dereference. Fix this by directly using uvc->func which is assigned already.
From the CVE record · Linux
The Linux kernel's USB UVC gadget initialization can dereference a null pointer while logging an error if kthread_run_worker() fails. The input does not establish whether an attacker can trigger this failure or specify network, authentication, or user-interaction conditions.
Engineers running the Linux kernel with the USB UVC gadget component should check their versions; affected versions are not specified.