Skip to content
StratQuad

Threats

Linux kernel USB MIDI gadget descriptor length miscalculation

CVE-2025-21835Medium

The Linux kernel's USB MIDI gadget driver incorrectly calculates the length of MIDI Streaming endpoint descriptors, causing the bNumEmbMIDIJack and bLength fields to be set wrong. When a device has different numbers of input and output ports, the host receives corrupted descriptors that leak uninitialised kernel memory. An attacker with the ability to configure a USB MIDI gadget device could exploit this to expose sensitive kernel data to a connected host computer.

Plain English summary of the NVD and CISA text, checked by machine against both.

Scores and dates

CVSS 3.1
5.5
MEDIUM
EPSS score
0.00
Probability of exploitation in 30 days
EPSS percentile
13th
Share of scored CVEs at or below this one

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Daily EPSS score, 3 Nov to 14 Nov, source FIRST

Detail

Affected versions

  • linux linux kernel: from 3.2, before 5.4.291
  • linux linux kernel: from 5.5, before 5.10.235
  • linux linux kernel: from 5.11, before 5.15.179
  • linux linux kernel: from 5.16, before 6.1.129
  • linux linux kernel: from 6.2, before 6.6.79
  • linux linux kernel: from 6.7, before 6.12.16
  • linux linux kernel: from 6.13, before 6.13.4
  • linux linux kernel: 6.14

Reports naming this CVE1 in total