{"id":"CVE-2026-68366","summary":"usb: gadget: uvc: clamp SEND_RESPONSE length to the response buffer","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uvc: clamp SEND_RESPONSE length to the response buffer\n\nuvc_send_response() builds the UVC control response from a user-supplied\nstruct uvc_request_data:\n\n\treq-\u003elength = min_t(unsigned int, uvc-\u003eevent_length, data-\u003elength);\n\t...\n\tmemcpy(req-\u003ebuf, data-\u003edata, req-\u003elength);\n\nreq-\u003elength is clamped to uvc-\u003eevent_length, which is taken from the\nhost control request wLength (up to UVC_MAX_REQUEST_SIZE, 64), and to\ndata-\u003elength, which comes from the UVCIOC_SEND_RESPONSE ioctl and is\nonly checked for being negative.  The source buffer data-\u003edata is only\n60 bytes, so a response with uvc-\u003eevent_length and data-\u003elength both\ngreater than 60 makes memcpy() read past the end of data-\u003edata.\n\nClamp req-\u003elength to sizeof(data-\u003edata) as well.","modified":"2026-08-21T03:30:38.186888758Z","published":"2026-08-10T12:03:43.304Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68366.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1f03658f3e9b2f8fd1d1003ba389a0390b49a350"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e116372b7a4f87df0dc0ed4b0ab5b0bb0cc5796"},{"type":"WEB","url":"https://git.kernel.org/stable/c/568e68d8f80395a64848aa2946af8ade72da0ffb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/662f6c6c6ff8a6c508e1646c09cae74e28f3cca6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/82ec2c1e456b17451f0736c3983402642f961733"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b70dc75e85ba968b7b76eebfe5d63000080b875b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c8510fbbea09ef0170b56b14dc2b5890dc75be07"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eaf783c005299a702f2cc96b08cd21ede081f098"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68366.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68366"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.0"}