PYSEC-2026-3978
Vulnerability from pysec - Published: 2026-05-27 14:16 - Updated: 2026-09-11 11:34libusb 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.
| Name | purl | libusb | pkg:pypi/libusb |
|---|
{
"affected": [
{
"ecosystem_specific": {},
"package": {
"ecosystem": "PyPI",
"name": "libusb",
"purl": "pkg:pypi/libusb"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.30"
}
],
"type": "ECOSYSTEM"
}
],
"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"
]
}
],
"aliases": [
"CVE-2026-23679"
],
"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.",
"id": "PYSEC-2026-3978",
"modified": "2026-09-11T11:34:16.071163Z",
"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"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.