CVE-2022-49772

ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()

MEDIUM
5.5
CVSS Score
Published: May 1, 2025 at 02:09 PM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open() snd_usbmidi_output_open() has a check of the NULL port with snd_BUG_ON(). snd_BUG_ON() was used as this shouldn't have happened, but in reality, the NULL port may be seen when the device gives an invalid endpoint setup at the descriptor, hence the driver skips the allocation. That is, the check itself is valid and snd_BUG_ON() should be dropped from there. Otherwise it's confusing as if it were a real bug, as recently syzbot stumbled on it.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.9.3344.10 ≤ v < 4.14.3004.15 ≤ v < 4.19.2674.15 ≤ v < 5.10.1564.15 ≤ v < 5.15.804.15 ≤ v < 5.4.2254.15 ≤ v < 6.0.104.15 ≤ v < 6.14.20 ≤ v < 5.4.2255.11 ≤ v < 5.15.805.16 ≤ v < 6.0.105.5 ≤ v < 5.10.1564.156.1 rc16.1 rc26.1 rc36.1 rc46.1 rc5738d9edcfd44f154924692e54109fb439fcf8bdd
Vendor states this is fixed in 00f5f1bbf815a39e9eecb468d12ca55d3360eb10 (fixed)
Vendor states this is fixed in 02b94885b2fdf1808b1874e009bfb90753f8f4db (fixed)
Vendor states this is fixed in a80369c8ca50bc885d14386087a834659ec54a54 (fixed)
Vendor states this is fixed in ad72c3c3f6eb81d2cb189ec71e888316adada5df (fixed)
Vendor states this is fixed in c43991065f36f7628cd124e037b8750c4617a7a7 (fixed)
Vendor states this is fixed in e7dc436aea80308a9268e6d2d85f910ff107de9b (fixed)
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.267 (unaffected)
Vendor states this is fixed in 5.10.156 (unaffected)
Vendor states this is fixed in 5.15.80 (unaffected)
Vendor states this is fixed in 5.4.225 (unaffected)
Vendor states this is fixed in 6.0.10 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card