# CVE-2022-49772: ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-02)
- Published: 2025-05-01T14:09:09.697Z
- Modified: 2026-11-05T20:17:09.857Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 738d9edcfd44f154924692e54109fb439fcf8bdd before c43991065f36f7628cd124e037b8750c4617a7a7; from 738d9edcfd44f154924692e54109fb439fcf8bdd before e7dc436aea80308a9268e6d2d85f910ff107de9b; from 738d9edcfd44f154924692e54109fb439fcf8bdd before a80369c8ca50bc885d14386087a834659ec54a54; from 738d9edcfd44f154924692e54109fb439fcf8bdd before 02b94885b2fdf1808b1874e009bfb90753f8f4db; from 738d9edcfd44f154924692e54109fb439fcf8bdd before 00f5f1bbf815a39e9eecb468d12ca55d3360eb10; from 738d9edcfd44f154924692e54109fb439fcf8bdd before ad72c3c3f6eb81d2cb189ec71e888316adada5df; 4.15 (not affected: before 4.15; from 4.19.267 up to 4.19.*; from 5.4.225 up to 5.4.*; from 5.10.156 up to 5.10.*; from 5.15.80 up to 5.15.*; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: before 4.9.334; from 4.10 before 4.14.300; from 4.15 before 4.19.267; from 4.20 before 5.4.225; from 5.5 before 5.10.156; from 5.11 before 5.15.80; from 5.16 before 6.0.10; 6.1

## References

- <https://git.kernel.org/stable/c/c43991065f36f7628cd124e037b8750c4617a7a7> (patch)
- <https://git.kernel.org/stable/c/e7dc436aea80308a9268e6d2d85f910ff107de9b> (patch)
- <https://git.kernel.org/stable/c/a80369c8ca50bc885d14386087a834659ec54a54> (patch)
- <https://git.kernel.org/stable/c/02b94885b2fdf1808b1874e009bfb90753f8f4db> (patch)
- <https://git.kernel.org/stable/c/00f5f1bbf815a39e9eecb468d12ca55d3360eb10> (patch)
- <https://git.kernel.org/stable/c/ad72c3c3f6eb81d2cb189ec71e888316adada5df> (patch)

## Sources

- CVE List: [CVE-2022-49772](https://www.cve.org/CVERecord?id=CVE-2022-49772), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-49772](https://nvd.nist.gov/vuln/detail/CVE-2022-49772), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-49772 · Whole record: https://cve.day/CVE-2022-49772.json · Rebuilt by cve.day 2026-11-25T22:58:20.862Z
