{"id":"PYSEC-2026-3978","details":"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.","aliases":["CVE-2026-23679"],"modified":"2026-09-11T12:00:03.923366646Z","published":"2026-05-27T14:16:44.170Z","references":[{"type":"ADVISORY","url":"https://github.com/libusb/libusb/releases/tag/v1.0.30"},{"type":"REPORT","url":"https://github.com/libusb/libusb/issues/1813"},{"type":"FIX","url":"https://github.com/libusb/libusb/commit/578ab76b4c434f8b204137ab6d7310689c7a9704"},{"type":"FIX","url":"https://github.com/libusb/libusb/pull/1814"},{"type":"FIX","url":"https://www.vulncheck.com/advisories/libusb-null-pointer-dereference-in-parse-interface"}],"affected":[{"package":{"name":"libusb","ecosystem":"PyPI","purl":"pkg:pypi/libusb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.30"}]}],"versions":["1.0.22b2","1.0.22b4","1.0.22b8","1.0.22b9","1.0.23b1","1.0.23b7","1.0.24b1","1.0.24b3","1.0.26","1.0.26b2","1.0.26b3","1.0.26b4","1.0.26b5","1.0.26rc2","1.0.26rc4","1.0.27","1.0.27.post1","1.0.27.post2","1.0.27.post3","1.0.27.post4","1.0.28","1.0.28.post1","1.0.28.post2","1.0.29","1.0.29.post1","1.0.29.post3","1.0.29.post4","1.0.29.post6","1.0.29.post7","1.0.30rc1","1.0.30rc2"],"ecosystem_specific":{},"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/libusb/PYSEC-2026-3978.yaml"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}