CVE-2026-64347

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

No CVSS score yet EPSS 0.12%

Published 25 Jul 2026 Updated 6 Nov 2026 CNA: Linux

Check your servers for CVE-2026-64347

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-64347 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.07% of all scored CVEs. Scores of 30 Nov 2026.

The assessment of CISA (SSVC, 6 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before 2454264b2ab4cf0055c0bfd39e79f830452bd0db
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before d3e72cfef2e38bd588055739a8100d14f9773b17
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before 8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before 56add2b9b2e89ec61c0761165d758f73004fdfdf
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before 91b3ecd34b60f950c50c560974945b6596a6f207
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before 01feaf024f29618d5ffa7ab0fd858e0579dcbf7b
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before fcb21bf747640c9d6bd1eda9da85420f076d59c1
affected from 53e6242db8d60da0587d36951cc9434d1a1c21dd, before f8f680609c2b3ab795ffcd6f21585b6dfc46d395
Other versions: unaffected
Linux
affected 4.3
unaffected before 4.3
unaffected from 5.10.261 up to and including 5.10.*
unaffected from 5.15.212 up to and including 5.15.*
unaffected from 6.1.178 up to and including 6.1.*
unaffected from 6.6.145 up to and including 6.6.*
unaffected from 6.12.96 up to and including 6.12.*
unaffected from 6.18.39 up to and including 6.18.*
unaffected from 7.1.4 up to and including 7.1.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-64347 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-64347

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-64347
trivy image --scanners vuln IMAGE | grep CVE-2026-64347

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-64347 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.