VDB
Sign up
MEDIUM5.5

PYSEC-2026-3979

Quick fix

PYSEC-2026-3979 — libusb: upgrade to the fixed version with the command below.

pip install --upgrade 'libusb>=1.0.30'

Details

libusb before version 1.0.30 contains a one-byte out-of-bounds read vulnerability in parse_iad_array() in descriptor.c that allows attackers to trigger a denial of service by supplying a malformed USB descriptor whose bLength equals size minus one, causing the bounds check to use the original buffer size instead of the remaining size. Attackers in virtualized environments with USB passthrough can supply crafted descriptors through libusb_get_active_interface_association_descriptors or libusb_get_interface_association_descriptors to read one byte past the end of the malloc allocation, resulting in a denial of service.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/libusb
Introduced in: 0Fixed in: 1.0.30
Fixpip install --upgrade 'libusb>=1.0.30'

References