# CVE-2026-64347: usb: gadget: composite: fix dead empty check in the USB\_DT\_OTG handler

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.13% (percentile 1, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-07-25T08:50:08.338Z
- **Modified:** 2026-11-06T17:18:50.617Z

## Who should check

- Anyone running Linux \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 2454264b2ab4cf0055c0bfd39e79f830452bd0db; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< d3e72cfef2e38bd588055739a8100d14f9773b17; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 56add2b9b2e89ec61c0761165d758f73004fdfdf; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 91b3ecd34b60f950c50c560974945b6596a6f207; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 01feaf024f29618d5ffa7ab0fd858e0579dcbf7b; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< fcb21bf747640c9d6bd1eda9da85420f076d59c1; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< f8f680609c2b3ab795ffcd6f21585b6dfc46d395
- Anyone running Linux 4.3

## 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.

## Affected and fixed versions

- Linux: \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 2454264b2ab4cf0055c0bfd39e79f830452bd0db; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< d3e72cfef2e38bd588055739a8100d14f9773b17; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 56add2b9b2e89ec61c0761165d758f73004fdfdf; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 91b3ecd34b60f950c50c560974945b6596a6f207; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 01feaf024f29618d5ffa7ab0fd858e0579dcbf7b; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< fcb21bf747640c9d6bd1eda9da85420f076d59c1; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< f8f680609c2b3ab795ffcd6f21585b6dfc46d395 (cvelist)
- Linux: 4.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64347. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64347.md
Affected: Linux >= 53e6242db8d60da0587d36951cc9434d1a1c21dd, < 2454264b2ab4cf0055c0bfd39e79f830452bd0db; >= 53e6242db8d60da0587d36951cc9434d1a1c21dd, < d3e72cfef2e38bd588055739a8100d14f9773b17; >= 53e6242db8d60da0587d36951cc9434d1a1c21dd, < 8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483; >= 53e6242db8d60da0587d369…
Fixed in: Linux 2454264b2ab4cf0055c0bfd39e79f830452bd0db, Linux 8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483, Linux 56add2b9b2e89ec61c0761165d758f73004fdfdf, Linux 91b3ecd34b60f950c50c560974945b6596a6f207, Linux 01feaf024f29618d5ffa7ab0fd858e0579dcbf7b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64347 being exploited?

There is no confirmed exploitation: CVE-2026-64347 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64347?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64347?

Linux \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 2454264b2ab4cf0055c0bfd39e79f830452bd0db; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< d3e72cfef2e38bd588055739a8100d14f9773b17; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 56add2b9b2e89ec61c0761165d758f73004fdfdf; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 91b3ecd34b60f950c50c560974945b6596a6f207; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< 01feaf024f29618d5ffa7ab0fd858e0579dcbf7b; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< fcb21bf747640c9d6bd1eda9da85420f076d59c1; \>= 53e6242db8d60da0587d36951cc9434d1a1c21dd, \< f8f680609c2b3ab795ffcd6f21585b6dfc46d395; Linux 4.3.

### Is there a fix for CVE-2026-64347?

Yes. Fixed in Linux 2454264b2ab4cf0055c0bfd39e79f830452bd0db, Linux 8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483, Linux 56add2b9b2e89ec61c0761165d758f73004fdfdf, Linux 91b3ecd34b60f950c50c560974945b6596a6f207, Linux 01feaf024f29618d5ffa7ab0fd858e0579dcbf7b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-64347?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2454264b2ab4cf0055c0bfd39e79f830452bd0db>
- patch: <https://git.kernel.org/stable/c/d3e72cfef2e38bd588055739a8100d14f9773b17>
- patch: <https://git.kernel.org/stable/c/8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483>
- patch: <https://git.kernel.org/stable/c/56add2b9b2e89ec61c0761165d758f73004fdfdf>
- patch: <https://git.kernel.org/stable/c/91b3ecd34b60f950c50c560974945b6596a6f207>
- patch: <https://git.kernel.org/stable/c/01feaf024f29618d5ffa7ab0fd858e0579dcbf7b>
- patch: <https://git.kernel.org/stable/c/fcb21bf747640c9d6bd1eda9da85420f076d59c1>
- patch: <https://git.kernel.org/stable/c/f8f680609c2b3ab795ffcd6f21585b6dfc46d395>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64347>

HTML: <https://flawdb.com/CVE-2026-64347> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64347>
