What’s Vulnerable › Vulnerabilities

CVE-2022-48948: usb: gadget: uvc: Prevent buffer overflow in setup handler

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: Prevent buffer overflow in setup handler Setup function uvc_function_setup permits control transfer requests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE), data stage handler for OUT transfer uses memcpy to copy req->actual bytes to uvc_event->data.data array of size 60. This may result in an overflow of 4 bytes.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.303, 4.19.270, 4.9.337, 5.10.161. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-48948 or the next vulnerability affects your stack