[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025031216-CVE-2025-21859-514d@gregkh>
Date: Wed, 12 Mar 2025 10:42:25 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2025-21859: USB: gadget: f_midi: f_midi_complete to call queue_work
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2025-21859 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.1.130 with commit 24a942610ee9bafb2692a456ae850c5b2e409b05
Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.6.80 with commit deeee3adb2c01eedab32c3b4519337689ad02e8a
Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.12.17 with commit e9fec6f42c45db2f62dc373fb1a10d2488c04e79
Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.13.5 with commit 8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba
Issue introduced in 3.2 with commit d5daf49b58661ec4af7a55b277176efbf945ca05 and fixed in 6.14-rc3 with commit 4ab37fcb42832cdd3e9d5e50653285ca84d6686f
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-21859
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/usb/gadget/function/f_midi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/24a942610ee9bafb2692a456ae850c5b2e409b05
https://git.kernel.org/stable/c/deeee3adb2c01eedab32c3b4519337689ad02e8a
https://git.kernel.org/stable/c/e9fec6f42c45db2f62dc373fb1a10d2488c04e79
https://git.kernel.org/stable/c/8aa6b4be1f4efccbfc533e6ec8841d26e4fa8dba
https://git.kernel.org/stable/c/4ab37fcb42832cdd3e9d5e50653285ca84d6686f
Powered by blists - more mailing lists