Skip to main content

Linux Kernel CVE-2026-64347

| EUVDEUVD-2026-48891 MEDIUM
Improper Locking (CWE-667)
2026-07-25 Linux GHSA-f6gg-fr3w-rqh2
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access with module-loading privileges
  2. Delivery
    Load or configure gadget driver with is_otg set before any usb_add_config() call
  3. Exploit
    USB host issues USB_DT_OTG setup request
  4. Execution
    list_first_entry() returns garbage pointer on empty config list
  5. Persist
    composite_setup() dereferences invalid config->descriptors[0]
  6. Impact
    KASAN fault crashes kernel

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper locking
Exploitation Conditions

USB gadget mode must be active - CONFIG_USB_LIBCOMPOSITE must be compiled in and a composite gadget driver must be loaded. The empty-config condition is triggered under exactly one of two sub-conditions: (1) a gadget driver that calls usb_gadget_connect() or sets is_otg before usb_add_config(), leaving cdev->configs empty when a USB_DT_OTG request arrives - this path is deterministic given driver-loading access; or (2) a race between gadget unbind (clearing the config list) and an in-flight USB_DT_OTG setup request from the connected USB host - this path requires timing. Both paths require local access sufficient to load or interact with gadget drivers (PR:L). A cooperating USB host device must send the USB_DT_OTG control request to trigger the handler. Exploitation is not possible on systems with no USB gadget support, which includes the majority of server and desktop Linux deployments.

Impact

The vendor CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) scores this as a local, low-privilege denial-of-service. The AC:L assignment merits scrutiny: one trigger path is a gadget unbind race requiring specific timing (favoring AC:H), while the other - a driver setting is_otg before registering any config - is more deterministic if an attacker controls gadget driver loading. A secondary confidentiality concern exists: the memcpy could copy arbitrary kernel memory into the USB response buffer visible to the connected USB host; however, the vendor scores C:N and this channel requires a cooperating USB host. EPSS at 0.22% (13th percentile) and no CISA KEV listing confirm very low exploitation probability. Practical risk is limited: USB gadget mode is not enabled by default on most server or desktop Linux distributions, and exploitation requires local access to the gadget subsystem. The 'Information Disclosure' tag in input metadata conflicts with the CVSS C:N assignment and the primarily availability-impacting KASAN fault described - availability impact is the confirmed outcome.

Exploit ScenarioDerived

A local attacker with module-loading capability loads a USB gadget driver that sets is_otg before calling usb_add_config(), leaving cdev->configs empty. When the connected USB host sends a USB_DT_OTG descriptor request, composite_setup() invokes list_first_entry() on the empty list, receives a garbage pointer, dereferences config->descriptors[0], and triggers a KASAN fault that crashes the kernel. An alternative path exploits the teardown race: the attacker repeatedly unbinds a gadget driver while a cooperating USB host continuously issues USB_DT_OTG control requests, eventually hitting the window where the config list is empty mid-transfer. No independent public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 03, 2026

Kernel denial-of-service in the Linux USB gadget composite driver crashes the system by triggering a KASAN memory fault in the USB_DT_OTG request handler when the configuration list is empty. The flaw exists because list_first_entry() never returns NULL - making the subsequent config NULL-check dead code - so when cdev->configs is empty during a gadget unbind race or when a driver sets is_otg before registering any configuration, composite_setup() dereferences a garbage pointer and memcpy() copies arbitrary kernel memory into the USB response buffer. No public exploit code has been identified, and EPSS is 0.22% (13th percentile), consistent with the local, race-condition nature of the flaw.

RemediationAI

Apply the upstream stable-branch patches: Linux 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4, or 7.2-rc3, with individual commits available at git.kernel.org/stable/c/2454264b2ab4cf0055c0bfd39e79f830452bd0db (and the seven sibling commits listed in references). Distribution-specific updates from RHEL, Ubuntu, Debian, and SUSE should be monitored as they incorporate these stable patches. If patching is not immediately feasible and USB gadget mode is not operationally required, unload or blacklist the usb_f_* and libcomposite kernel modules to eliminate the attack surface entirely - this will break USB OTG and gadget-mode functionality such as USB networking (g_ether), USB storage, and USB serial. Avoiding gadget driver unloads while USB control transfers are in flight reduces the teardown-race path but is not a reliable standalone control.

Affected VersionsENISA

Linux patch: 7.1.4
Linux patch: 6.18.39
Linux patch: 0
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <01feaf024f29618d5ffa7ab0fd858e0579dcbf7b
Linux patch: 6.12.96
Linux patch: 6.6.145
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <2454264b2ab4cf0055c0bfd39e79f830452bd0db
Linux 4.3
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <f8f680609c2b3ab795ffcd6f21585b6dfc46d395
Linux patch: 5.10.261
Linux patch: 5.15.212
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483
Linux patch: 6.1.178
Linux patch: 7.2-rc3
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <91b3ecd34b60f950c50c560974945b6596a6f207
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <d3e72cfef2e38bd588055739a8100d14f9773b17
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <fcb21bf747640c9d6bd1eda9da85420f076d59c1
Linux 53e6242db8d60da0587d36951cc9434d1a1c21dd <56add2b9b2e89ec61c0761165d758f73004fdfdf

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in composite_setup() within drivers/usb/gadget/composite.c, the core handler for USB composite device setup requests. When processing a USB_DT_OTG descriptor, the code falls back to list_first_entry() when no active configuration exists - but this kernel macro returns container_of(head->next, ...) and never returns NULL, even on an empty list. This renders the subsequent 'if (!config)' guard permanently dead code. When cdev->configs is genuinely empty, config points into the usb_composite_dev struct head rather than a valid usb_configuration object. The dereference of config->descriptors[0] reads an arbitrary kernel address, and memcpy then copies up to w_length bytes from that pointer into the USB response buffer, triggering a KASAN out-of-bounds or use-after-free fault. CWE-667 is assigned; the root cause is more precisely a dead-check logic error from misuse of the list_first_entry() API. The upstream fix replaces it with list_first_entry_or_null(), making the NULL guard effective. The vulnerable code was introduced at commit 53e6242db8d60da0587d36951cc9434d1a1c21dd (kernel 4.3).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

AC:H reflects that both trigger paths require either a timing race on gadget unbind or a specific driver misconfiguration, not a straightforwardly reliable exploit condition.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.7 MEDIUM
AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Sep 03, 2026 - 16:07 NVD
5.5 (MEDIUM)
Patch available
Jul 25, 2026 - 11:18 EUVD
CVE Published
Jul 25, 2026 - 08:50 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 25, 2026 - 08:50 nvd
MEDIUM 5.5

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Ubiquitous
core OS kernel present in virtually all Linux deployments
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:15.7.20.8.150 Image SLES15-SP7-SAPCAL-Azure Image SLES15-SP7-SAPCAL-EC2 Image SLES15-SP7-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.193 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.169 Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.223 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.167 Affected
Image SLES-GCE-3P Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected

References

Advisories & patches
ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-64347 ADVISORY https://ubuntu.com/security/notices/USN-8726-1 ADVISORY https://ubuntu.com/security/notices/USN-8727-1 ADVISORY https://vuldb.com/vuln/383145 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23066/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23068/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23183/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23193/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23194/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23221/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23231/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23237/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23238/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23240/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23241/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:23244/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:3790/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:3810/ REF https://git.kernel.org/stable/c/01feaf024f29618d5ffa7ab0fd858e0579dcbf7b REF https://git.kernel.org/stable/c/2454264b2ab4cf0055c0bfd39e79f830452bd0db REF https://git.kernel.org/stable/c/56add2b9b2e89ec61c0761165d758f73004fdfdf REF https://git.kernel.org/stable/c/8ac463fe6c0f85bdb1ce8c30e8c9e060802e4483 REF https://git.kernel.org/stable/c/91b3ecd34b60f950c50c560974945b6596a6f207 REF https://git.kernel.org/stable/c/d3e72cfef2e38bd588055739a8100d14f9773b17 REF https://git.kernel.org/stable/c/f8f680609c2b3ab795ffcd6f21585b6dfc46d395 REF https://git.kernel.org/stable/c/fcb21bf747640c9d6bd1eda9da85420f076d59c1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy