CVE-2026-68366: usb: gadget: uvc: clamp SEND_RESPONSE length to the response buffer

Published Aug 10, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: uvc: clamp SENDRESPONSE length to the response buffer

uvcsendresponse() builds the UVC control response from a user-supplied struct uvcrequestdata:

req->length = mint(unsigned int, uvc->eventlength, data->length); ... memcpy(req->buf, data->data, req->length);

req->length is clamped to uvc->eventlength, which is taken from the host control request wLength (up to UVCMAXREQUESTSIZE, 64), and to data->length, which comes from the UVCIOCSENDRESPONSE ioctl and is only checked for being negative. The source buffer data->data is only 60 bytes, so a response with uvc->eventlength and data->length both greater than 60 makes memcpy() read past the end of data->data.

Clamp req->length to sizeof(data->data) as well.

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In uvc_send_response(), clamp the user-supplied SEND_RESPONSE length before memcpy(): set req->length = min_t(unsigned int, uvc->event_length, data->length) and ensure it is clamped to the response buffer capacity (e.g., clamp req->length to sizeof(data->data) / the available response buffer size) so memcpy(req->buf, data->data, req->length) cannot read past data->data.

    Linux kernel UVC gadget driver (usb: gadget: uvc) SEND_RESPONSE response length clamping = req->length = min_t(unsigned int, uvc->event_length, data->length) and clamp to response buffer size

Event History

Aug 10, 2026
CVE Published
via MITRE·12:03 PM
Data Sourced
via MITRE·12:03 PM
Description
Data Sourced
via NVD·01:20 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-68366?

The severity of CVE-2026-68366 is risk 37.

2

How do I fix CVE-2026-68366?

To fix CVE-2026-68366, update to the latest version of the Linux kernel that includes the patch.

3

What systems are affected by CVE-2026-68366?

CVE-2026-68366 affects systems running the vulnerable versions of the Linux kernel that implement UVC gadget functionality.

4

What is the impact of CVE-2026-68366?

CVE-2026-68366 could allow an attacker to exploit improper handling of response lengths in UVC control responses.

5

When was CVE-2026-68366 publicly disclosed?

CVE-2026-68366 was published on August 10, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203