media: uvcvideo: Fix double free in error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a31a4055473bf0a7b2b06cb2262347200d0711e1 · < d1f8e69eec91d5a75ef079778a5d0151db2a7f22| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: uvcvideo: Fix double free in error path
If the uvc_status_init() function fails to allocate the int_urb, it will free the dev->status pointer but doesn't reset the pointer to NULL. This results in the kfree() call in uvc_status_cleanup() trying to double-free the memory. Fix it by resetting the dev->status pointer to NULL after freeing it.
Reviewed by: Ricardo Ribalda <ribalda@chromium.org>
From the CVE record · Linux
The Linux kernel's uvcvideo driver can double-free memory if uvc_status_init() fails to allocate int_urb: it frees dev->status without clearing the pointer, and uvc_status_cleanup() frees it again. The input does not establish how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected uvcvideo code; affected versions are not specified.