---
id: CVE-2026-23679
aliases:
  - PYSEC-2026-3978
title: >-
  libusb before version 1.0.30 contains a NULL pointer dereference vulnerability
  that allows attackers to crash applications by supplying a…
summary: >-
  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 bu…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
vendor: libusb
product: libusb
ecosystem: pip
affected:
  - libusb < 1.0.30
patched:
  - libusb 1.0.30
published: '2026-05-27'
updated: '2026-09-11'
sourceUpdated: '2026-09-11T12:00:03.923366646Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/PYSEC-2026-3978'
references:
  - url: 'https://github.com/libusb/libusb/releases/tag/v1.0.30'
  - url: 'https://github.com/libusb/libusb/issues/1813'
  - url: >-
      https://github.com/libusb/libusb/commit/578ab76b4c434f8b204137ab6d7310689c7a9704
  - url: 'https://github.com/libusb/libusb/pull/1814'
  - url: >-
      https://www.vulncheck.com/advisories/libusb-null-pointer-dereference-in-parse-interface
tags:
  - osv
  - pip
epss: 0.00184
epssPercentile: 0.07088
ingestedAt: '2026-09-12T03:13:01.743Z'
---

## Overview

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.

## Affected packages

- `libusb < 1.0.30`

## Remediation

Upgrade to a patched release:

- `libusb 1.0.30`
