Bug 2348289 (CVE-2022-49545)

Summary: CVE-2022-49545 kernel: ALSA: usb-audio: Cancel pending work at closing a MIDI substream
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, rhel-process-autobot, vkumar, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's ALSA (Advanced Linux Sound Architecture) USB audio subsystem. This flaw allows a local user to cause a Denial of Service (DoS) through a system crash. A race condition exists when closing a USB MIDI (Musical Instrument Digital Interface) output substream because pending scheduled work is not properly cancelled before the associated runtime object is released. This failure to cancel pending work can result in a use-after-free condition when accessing deallocated memory.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:24:13 UTC
In the Linux kernel, the following vulnerability has been resolved:

ALSA: usb-audio: Cancel pending work at closing a MIDI substream

At closing a USB MIDI output substream, there might be still a pending
work, which would eventually access the rawmidi runtime object that is
being released.  For fixing the race, make sure to cancel the pending
work at closing.

Comment 1 Avinash Hanwate 2025-02-26 20:30:48 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022615-CVE-2022-49545-4e81@gregkh/T