VDB

CVE-2026-64347

CVE-2026-64347 PUBLISHED

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

Reported by linux · Published July 25, 2026

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: composite: fix dead empty check in the USB_DT_OTG handler The OTG branch of composite_setup() falls back to the first configuration when none is selected: if (cdev->config) config = cdev->config; else config = list_first_entry(&cdev->configs, struct usb_configuration, list); if (!config) goto done; ... memcpy(req->buf, config->descriptors[0], value); list_first_entry() never returns NULL. On an empty list it returns container_of() of the list head. So the "if (!config)" check is dead. When cdev->configs is empty, config points at the head inside struct usb_composite_dev. config->descriptors[0] reads whatever sits at that offset. The memcpy copies up to w_length bytes of it into the response buffer. cdev->configs can be empty in two cases. One is a teardown race on gadget unbind with a control transfer in flight. The other is a driver that sets is_otg before it adds a config. A reproducer that holds cdev->configs empty triggers a KASAN fault in this branch. Use list_first_entry_or_null() so the existing check does its job.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux7.1.4, 6.18.39, 6.12.96, 6.6.145, 6.1.178, 5.15.212, 5.10.261

Affected products

VendorProductVersions
LinuxLinux53e6242db8d60da0587d36951cc9434d1a1c21dd, 53e6242db8d60da0587d36951cc9434d1a1c21dd, 53e6242db8d60da0587d36951cc9434d1a1c21dd
LinuxLinux4.3, 0, 5.10.261
linuxlinux_kernel4.3, 4.3, 4.3
LinuxLinux53e6242db8d60da0587d36951cc9434d1a1c21dd, 53e6242db8d60da0587d36951cc9434d1a1c21dd, 53e6242db8d60da0587d36951cc9434d1a1c21dd

Timeline

  • Jul 25, 2026 EPSS Score (5 in total, the first dated here)
  • Jul 25, 2026 Coalition ESS Score
  • Jul 25, 2026 CVE Published
  • Jul 26, 2026 Security Advisory (20 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (21 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64347
vulnetix vdb fixes CVE-2026-64347

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64347/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›