CVE Database›Document archive›CVE-2026-64347

CVE-2026-64347

kernel: usb: gadget: composite: fix dead empty check in the USB_DT_OTG handler

Loading…

Severity

Moderate

Red Hat Product Security

5.1

CVSS 3.1

Review impact separately from score.

Published · July 25, 2026

Updated · November 3, 2026

Description

A flaw was found in the USB gadget composite driver in the Linux kernel. An issue with an empty check in the USB_DT_OTG handler can lead to reading from an invalid memory location. This can result in a kernel AddressSanitizer (KASAN) fault, potentially causing information disclosure or a denial of service.

Statement

The USB gadget composite USB_DT_OTG handler can use list_first_entry() on an empty cdev configs list and treat the list head as a usb_configuration object. This makes config descriptors point to unrelated kernel memory and can lead to an invalid read during memcpy into the USB control response buffer. A malicious USB host can trigger the vulnerable path when the gadget has no active configurations, for example during a teardown race or during an invalid gadget driver initialization window. For the CVSS the PR:N is used because the attacker does not need credentials on the gadget device, only access to the USB host side of the connection. The issue is not network reachable and requires physical or USB bus access. Impact is at least denial of service via kernel crash, with a plausible confidentiality impact because bytes copied from an unintended kernel address may be returned in the USB response.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 5.1
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CWE-476 · NULL Pointer Dereference