CVE-2026-68366

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

State
Published
Severity
Not scored
Published
Aug 10, 2026
Updated
Aug 19, 2026
Reserved
Jul 30, 2026

Read the record on cve.org

Description

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

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

uvc_send_response() builds the UVC control response from a user-supplied struct uvc_request_data:

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

req->length is clamped to uvc->event_length, which is taken from the host control request wLength (up to UVC_MAX_REQUEST_SIZE, 64), and to data->length, which comes from the UVCIOC_SEND_RESPONSE ioctl and is only checked for being negative. The source buffer data->data is only 60 bytes, so a response with uvc->event_length 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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before eaf783c005299a702f2cc96b08cd21ede081f098Affected
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before 568e68d8f80395a64848aa2946af8ade72da0ffbAffected
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before 82ec2c1e456b17451f0736c3983402642f961733Affected
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before 4e116372b7a4f87df0dc0ed4b0ab5b0bb0cc5796Affected
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before 662f6c6c6ff8a6c508e1646c09cae74e28f3cca6Affected
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before 1f03658f3e9b2f8fd1d1003ba389a0390b49a350Affected
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before c8510fbbea09ef0170b56b14dc2b5890dc75be07Affected
  • a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1 to before b70dc75e85ba968b7b76eebfe5d63000080b875bAffected
LinuxLinux
  • 3.10Affected
  • before 3.10Not affected
  • 5.10.265 through 5.10.*Not affected
  • 5.15.216 through 5.15.*Not affected
  • 6.1.183 through 6.1.*Not affected
  • 6.6.148 through 6.6.*Not affected
  • 6.12.101 through 6.12.*Not affected
  • 6.18.42 through 6.18.*Not affected
  • 7.1.6 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.