CVE-2026-68366
Received Received - Intake

Buffer Length Clamp in Linux Kernel USB Gadget UVC

Vulnerability report for CVE-2026-68366, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: kernel.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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-10
AI Q&A
2026-08-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a buffer overflow vulnerability in the Linux kernel's USB gadget UVC (USB Video Class) driver. It occurs when processing UVC control responses. The flaw allows a user to send a maliciously crafted response that exceeds the allocated buffer size (60 bytes), leading to memory corruption via memcpy reading past the buffer's end.

Detection Guidance

This vulnerability is specific to the Linux kernel's USB gadget UVC (USB Video Class) driver. Detection requires checking the kernel version and examining the UVC gadget driver code for the vulnerable memcpy operation. No direct network detection commands are applicable.

Impact Analysis

This vulnerability could allow an attacker with local access to cause a kernel crash or execute arbitrary code with kernel privileges. It may lead to system instability, privilege escalation, or denial of service on affected systems running vulnerable Linux kernel versions.

Mitigation Strategies

Apply the Linux kernel patch that clamps the response length to the buffer size. Update to a kernel version that includes the fix for CVE-2026-68366. If patching is not immediately possible, disable the UVC gadget functionality until the patch is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68366. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart