CVE-2026-68366

Source
https://cve.org/CVERecord?id=CVE-2026-68366
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-68366.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-68366
Downstream
Published
2026-08-10T12:03:43Z
Modified
2026-08-21T03:30:38Z
Summary
usb: gadget: uvc: clamp SEND_RESPONSE length to the response buffer
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68366.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1
Fixed
eaf783c005299a702f2cc96b08cd21ede081f098
Fixed
568e68d8f80395a64848aa2946af8ade72da0ffb
Fixed
82ec2c1e456b17451f0736c3983402642f961733
Fixed
4e116372b7a4f87df0dc0ed4b0ab5b0bb0cc5796
Fixed
662f6c6c6ff8a6c508e1646c09cae74e28f3cca6
Fixed
1f03658f3e9b2f8fd1d1003ba389a0390b49a350
Fixed
c8510fbbea09ef0170b56b14dc2b5890dc75be07
Fixed
b70dc75e85ba968b7b76eebfe5d63000080b875b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-68366.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.10.0
Fixed
5.10.265
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.216
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.183
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.148
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.101
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.42
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-68366.json"