CVE-2026-64347·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.10% — in the bottom 1% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to resolve a USB gadget descriptor handling flaw that could leak kernel memory or cause system crashes. The vulnerability affects kernel versions 6.19 through 7.1.3 when USB OTG devices are configured improperly or during teardown races. Prioritize this patch if your system uses USB gadget functionality or OTG mode.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and confirm if it falls within the vulnerable range (6.19 to 7.1.3)
- Check if USB gadget mode is enabled by running 'cat /boot/config-$(uname -r) | grep CONFIG_USB_GADGET' and looking for '=y' in the output
- Review dmesg logs for KASAN faults or memory corruption warnings: 'sudo dmesg | grep -i kasan' or 'sudo dmesg | grep -i "memory corruption"'
- Verify the fix by upgrading to kernel 7.1.4+ and confirming with 'uname -r' that the new version is booted
FAQ
What is CVE-2026-64347?
CVE-2026-64347 is a kernel vulnerability in the USB gadget composite driver where an improper null pointer check allows reading uninitialized kernel memory or triggering a crash when USB OTG descriptor requests are processed without a valid configuration present.
Is CVE-2026-64347 being actively exploited?
No, there are no known active exploits or public proof-of-concepts for this vulnerability. It is not listed on CISA's Known Exploited Vulnerabilities catalog.
What versions of Kernel are affected by CVE-2026-64347?
Linux kernel versions 6.19 through 7.1.3 are affected. The vulnerability was patched in version 7.1.4 and later.
How do I check if my server is vulnerable to CVE-2026-64347?
Run 'uname -r' and check if your kernel version is between 6.19 and 7.1.3. Additionally, verify USB gadget support is compiled in with 'cat /boot/config-$(uname -r) | grep CONFIG_USB_GADGET'.
Does Defensia detect CVE-2026-64347?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64347 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/01feaf024f29618d5ffa7ab0fd858e0579dcbf7b
- https://git.kernel.org/stable/c/2454264b2ab4cf0055c0bfd39e79f830452bd0db
- https://git.kernel.org/stable/c/56add2b9b2e89ec61c0761165d758f73004fdfdf
- https://git.kernel.org/stable/c/8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483
- https://git.kernel.org/stable/c/91b3ecd34b60f950c50c560974945b6596a6f207
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64347. Free for 1 server.
Get started free