CVE-2022-49772

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

State
Published
Severity
Not scored
Published
May 1, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 738d9edcfd44f154924692e54109fb439fcf8bdd to before c43991065f36f7628cd124e037b8750c4617a7a7Affected
  • 738d9edcfd44f154924692e54109fb439fcf8bdd to before e7dc436aea80308a9268e6d2d85f910ff107de9bAffected
  • 738d9edcfd44f154924692e54109fb439fcf8bdd to before a80369c8ca50bc885d14386087a834659ec54a54Affected
  • 738d9edcfd44f154924692e54109fb439fcf8bdd to before 02b94885b2fdf1808b1874e009bfb90753f8f4dbAffected
  • 738d9edcfd44f154924692e54109fb439fcf8bdd to before 00f5f1bbf815a39e9eecb468d12ca55d3360eb10Affected
  • 738d9edcfd44f154924692e54109fb439fcf8bdd to before ad72c3c3f6eb81d2cb189ec71e888316adada5dfAffected
LinuxLinux
  • 4.15Affected
  • before 4.15Not affected
  • 4.19.267 through 4.19.*Not affected
  • 5.4.225 through 5.4.*Not affected
  • 5.10.156 through 5.10.*Not affected
  • 5.15.80 through 5.15.*Not affected
  • 6.0.10 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.