Skip to main content

libusb CVE-2026-23679

| EUVDEUVD-2026-32502 MEDIUM
Out-of-bounds Read (CWE-125)
2026-05-27 disclosure@vulncheck.com GHSA-jp69-qvgm-mqwx
6.9
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malformed USB config descriptor with oversized class-specific bLength
  2. Delivery
    Deliver descriptor via VM USB passthrough, crafted USB device, or file/network source
  3. Exploit
    Application calls libusb_get_active_config_descriptor or libusb_get_config_descriptor
  4. Execution
    parse_interface() exits early, omits endpoint array allocation
  5. Persist
    Application iterates NULL endpoint pointer
  6. Impact
    Application crash (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the attacker must control the content of a USB configuration descriptor that reaches the libusb parser - achievable via a malicious physical USB device, a guest VM with USB passthrough rights, a file containing a descriptor read by the application, or a network channel supplying descriptor data; (2) the malformed descriptor must contain an interface with bNumEndpoints greater than zero immediately followed by a class-specific descriptor whose bLength exceeds the remaining buffer; and (3) the consuming application must invoke libusb_get_active_config_descriptor or libusb_get_config_descriptor and then iterate over the returned endpoint descriptors. No privileges are required (PR:N) and no user interaction is needed (UI:N) per the CVSS vector, but the local attack vector (AV:L) means exploitation from a purely remote, network-only position against a default USB-connected system is not supported by the available data. Key limiting factors: the attack is constrained to contexts where untrusted descriptor data can reach a libusb-consuming application, and the impact is limited to application crash with no confirmed code execution path.

Impact

The CVSS 4.0 base score is 6.9, driven by AV:L/AC:L/AT:N/PR:N/UI:N/VA:H - local attack vector, no privileges required, no user interaction, and high availability impact on the vulnerable component with no confidentiality or integrity consequences. The local vector is the primary risk-limiting factor: USB is a local bus, and in a physical device context an attacker needs either physical proximity to plug in a crafted device or some indirect delivery path. However, the CVE description explicitly calls out three indirect delivery mechanisms that weaken the local-only framing: virtualized USB passthrough (hypervisor environments where a guest can influence descriptor data seen by the host), file-based descriptor parsing (applications reading descriptors from disk), and network-sourced descriptors. In hypervisor or USB-over-IP environments, this local-vector vulnerability may be reachable by a less-privileged network attacker. No KEV listing exists and no public exploit code has been identified at time of analysis, and EPSS data was not provided in the available intelligence. The exploit maturity field (E:X) in the CVSS vector is unspecified, leaving exploitation likelihood unquantifiable from this dataset. The impact ceiling is a denial-of-service crash; there is no confidentiality or integrity impact, which limits priority for most deployments but is meaningful for availability-sensitive or embedded systems relying on libusb for device management.

Exploit ScenarioDerived

An attacker operating within a virtualized environment that has USB passthrough configured attaches or emulates a USB device that presents a crafted configuration descriptor: the descriptor claims one or more endpoints on an interface but embeds an oversized class-specific descriptor immediately afterward. When the host-side application calls libusb_get_active_config_descriptor and subsequently iterates over the interface's endpoint list, parse_interface has already returned early without allocating the endpoint array; the application dereferences a NULL pointer and crashes. No public exploit code is identified at time of analysis, but the regression corpus files (regression_bug_a_endpoint_null.bin) committed alongside the fix confirm the crash path is deterministically reproducible from a crafted binary descriptor blob.

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

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

Alert me

AnalysisAIv1 – May 27, 2026

NULL pointer dereference in libusb's USB descriptor parser allows any attacker who can supply a crafted configuration descriptor to crash any application that uses libusb for USB device enumeration. Affected versions are all libusb releases before 1.0.30; the flaw resides in parse_interface() within descriptor.c and is reachable through the public APIs libusb_get_active_config_descriptor and libusb_get_config_descriptor. No public exploit code is identified at time of analysis and this CVE does not appear in the CISA KEV catalog, but the availability impact is confirmed high (CVSS 4.0 VA:H) and regression corpus files in the fix commit demonstrate reliable crash reproduction.

RemediationAI

The vendor-released patch is libusb version 1.0.30, available at https://github.com/libusb/libusb/releases/tag/v1.0.30. The fix is implemented in commit 578ab76b4c434f8b204137ab6d7310689c7a9704, which corrects the endpoint array allocation logic in parse_interface() and adds fuzz regression corpus coverage to prevent recurrence. Applications that statically link libusb must be recompiled against 1.0.30; dynamically linked applications benefit from upgrading the shared library. If an immediate upgrade is not feasible, restrict descriptor sources reachable by the vulnerable library: in hypervisor environments, limit USB passthrough to enumerated, trusted physical devices and audit which VMs have passthrough rights; in applications that parse descriptors from files or network streams, add input validation to reject descriptors whose interface-claimed bNumEndpoints is non-zero when the subsequent class-specific descriptor bLength would exceed the buffer - this trades completeness of USB device support for crash prevention. Note that descriptor-level filtering requires application-side changes and may break support for legitimate devices with unusual descriptor layouts.

Affected VersionsENISA

libusb 0 <1.0.30

Affected Packages

pypi libusb fix: 1.0.30

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

libusb is a widely embedded C library that provides userspace applications with generic, OS-independent access to USB devices. Descriptor parsing occurs in descriptor.c; the entry point parse_configuration() calls parse_interface() for each interface claimed by a USB configuration. The bug manifests when an interface descriptor sets bNumEndpoints greater than zero but the immediately following descriptor is a class-specific descriptor whose bLength field exceeds the remaining buffer size. The bounds check causes parse_interface() to return early before it executes the malloc() that allocates the endpoint array, leaving the pointer NULL. CWE-125 (Out-of-bounds Read) is the root cause class: the oversized bLength triggers an early-exit guard that was intended to protect against a read overrun, but the guard was placed incorrectly relative to the endpoint array allocation, creating a second-order NULL dereference when callers later iterate over the (non-existent) endpoints. The fix at commit 578ab76b4c434f8b204137ab6d7310689c7a9704 also introduces an OSS-Fuzz integration target (fuzz_descriptor_parsers.c) and three regression corpus binaries, confirming the issue was verified through fuzz testing before release.

Know when Libusb gets its next vulnerability

  • 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

Vendor (vulncheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 6.2 MEDIUM

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
May 27, 2026 - 19:46 EUVD

DescriptionCVE.org

libusb before version 1.0.30 contains a NULL pointer dereference vulnerability that allows attackers to crash applications by supplying a malformed USB configuration descriptor where an interface claims bNumEndpoints greater than zero but is followed by a class-specific descriptor whose bLength exceeds the remaining buffer size, causing parse_interface() to return early without allocating the endpoint array. Attackers can exploit this flaw through libusb_get_active_config_descriptor or libusb_get_config_descriptor by providing crafted descriptors via virtualized USB passthrough, file-based descriptor parsing, or network sources, causing any application iterating over endpoints to dereference a NULL endpoint pointer and crash.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
8 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.0%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Micro 5.3 Fixed
SUSE Linux Enterprise Micro 5.4 Fixed
SUSE Linux Enterprise Micro 5.5 Fixed

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