---
id: CVE-2025-21859
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  USB: gadget: f_midi: f_midi_complete to call queue_work

  When using USB MIDI, a lock is attempted to be acquired twice through a
  re-entrant call to f_midi_transmit, cau…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  USB: gadget: f_midi: f_midi_complete to call queue_work

  When using USB MIDI, a lock is attempted to be acquired twice through a
  re-entrant call to f_midi_transmit, cau…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-667
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 3.2, < 6.1.130'
  - 'linux_kernel >= 6.2, < 6.6.80'
  - 'linux_kernel >= 6.7, < 6.12.17'
  - 'linux_kernel >= 6.13, < 6.13.5'
  - linux_kernel = 6.14
patched:
  - linux_kernel 6.13.5
published: '2025-03-12'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T02:17:39.083'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21859'
references:
  - url: 'https://git.kernel.org/stable/c/1f10923404705a94891e612dff3b75e828a78368'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/727dee0857946b85232526de4f5a957fe163e89a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b09957657d7767d164b3432af2129bd72947553c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-784472.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00191
epssPercentile: 0.08674
ingestedAt: '2026-10-15T03:30:12.806Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2025-10-01T19:25:50.980181Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

USB: gadget: f_midi: f_midi_complete to call queue_work

When using USB MIDI, a lock is attempted to be acquired twice through a
re-entrant call to f_midi_transmit, causing a deadlock.

Fix it by using queue_work() to schedule the inner f_midi_transmit() via
a high priority work queue from the completion handler.

## Affected

- `linux_kernel >= 3.2, < 6.1.130`
- `linux_kernel >= 6.2, < 6.6.80`
- `linux_kernel >= 6.7, < 6.12.17`
- `linux_kernel >= 6.13, < 6.13.5`
- `linux_kernel = 6.14`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.13.5`
