CVE-2025-21835 — usb: gadget: f_midi: fix MIDI Streaming descriptor lengths
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_midi: fix MIDI Streaming descriptor lengths While the MIDI jacks are configured correctly, and the MIDIStreaming endpoint descriptors are filled with the correct information, bNumEmbMIDIJack and bLength are set incorrectly in these descriptors. This does not matter when the numbers of in and out ports are equal, but when they differ the host will receive broken descriptors with uninitialized stack memory leaking into the descriptor for whichever value is smaller. The precise meaning of "in" and "out" in the port counts is not clearly defined and can be confusing. But elsewhere the driver consistently uses this to match the USB meaning of IN and OUT viewed from the host, so that "in" ports send data to the host and "out" ports receive data from it.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- EPSS 0.2% (30-day exploitation probability)+2
- Technical severity (medium)+3
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Linux Linux, Linux Linux Kernel).
- Apply the fixed version or the patch documented under Remediation.
- Search available logs for exploit probes, errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Linux | Linux |
≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < 3a983390d14e8498f303fc5cb23ab7d696b815dbversion 3.2≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < da1668997052ed1cb00322e1f3b63702615c9429≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < a2d0694e1f111379c1efdf439dadd3cfd959fe9d≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < 6b16761a928796e4b49e89a0b1ac284155172726≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < 6ae6dee9f005a2f3b739b85abb6f14a0935699e0≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < 9f6860a9c11301b052225ca8825f8d2b1a5825bf≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < d8e86700c8a8cf415e300a0921acd6a8f9b494f8 and 1 more≥ c8933c3f79568263c90a46f06cf80419e6c63c97 and < 9f36a89dcb78cb7e37f487b04a16396ac18c0636 |
Vulnerable | CVE Program (cve.org) e CISA ADP |
| Linux | Linux Kernel |
≥ 3.2 and < 5.4.291version 6.14-rc2version 6.14-rc1≥ 6.13 and < 6.13.4≥ 6.7 and < 6.12.16≥ 6.2 and < 6.6.79≥ 5.16 and < 6.1.129≥ 5.11 and < 5.15.179 and 1 more≥ 5.5 and < 5.10.235 |
Vulnerable | NIST National Vulnerability Database |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 5.5 | CVSS 3.1 | Medium | 1.8 | 3.6 | nvd@nist.gov via NIST National Vulnerability Database |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (score shown at the top: nvd@nist.gov) Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Local/physical vector: focus on endpoint telemetry (EDR) from affected hosts.
Timeline
What happened to this CVE, newest first.
- 2026
- Affected products added · linux/linux
- Record published
- Fix documented
- CVSS changed · 5.5
- Source status changed · → Modified
- Record created in this database
- 2025
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 1× Official description updated · Oct 15, 2026 – Oct 15, 2026
References
12 on the record
- git.kernel.org/stable/c/a2d0694e1f111379c1efdf439dadd3cfd959fe9d
- git.kernel.org/stable/c/6b16761a928796e4b49e89a0b1ac284155172726
- git.kernel.org/stable/c/d8e86700c8a8cf415e300a0921acd6a8f9b494f8
- git.kernel.org/stable/c/6ae6dee9f005a2f3b739b85abb6f14a0935699e0
- git.kernel.org/stable/c/9f6860a9c11301b052225ca8825f8d2b1a5825bf
- git.kernel.org/stable/c/da1668997052ed1cb00322e1f3b63702615c9429
- git.kernel.org/stable/c/3a983390d14e8498f303fc5cb23ab7d696b815db
- git.kernel.org/stable/c/9f36a89dcb78cb7e37f487b04a16396ac18c0636
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- cert-portal.siemens.com/productcert/html/ssa-784472.html
- lists.debian.org/debian-lts-announce/2025/03/msg00028.html
- cert-portal.siemens.com/productcert/html/ssa-265688.html
Elsewhere on this site
Related CVEs (same products)
- Critical CVE-2026-99999 ipv4: validate checksum_start before completing checksum 9h
- Unknown CVE-2026-98432 ipv4: free inet_opt and ireq_opt after an RCU grace period 9h
- Unknown CVE-2026-98431 RDMA/uverbs: Fix mmap_lock/disassociation_lock circular dependency 1d
- Unknown CVE-2026-98430 RDMA/efa: Keep admin queues alive while IRQ is registered 1d
- Unknown CVE-2026-98429 RDMA/efa: Keep EQ resources alive while IRQ is registered 1d
- Unknown CVE-2026-98428 ALSA: usb: 6fire: Avoid embedded URBs 1d
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No CISA SSVC assessment.
- No CWE classification.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2025-21835 is "usb: gadget: f_midi: fix MIDI Streaming descriptor lengths", rated Medium. It affects Linux (Linux); versions are in the scope table. It is not in CISA KEV, which does not rule out exploitation. CVSS 5.5 describes technical severity. EPSS 0.23% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.