---
id: CVE-2022-49772
title: 'ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()'
summary: |-
  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 t…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd <
    c43991065f36f7628cd124e037b8750c4617a7a7
  - >-
    Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd <
    e7dc436aea80308a9268e6d2d85f910ff107de9b
  - >-
    Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd <
    a80369c8ca50bc885d14386087a834659ec54a54
  - >-
    Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd <
    02b94885b2fdf1808b1874e009bfb90753f8f4db
  - >-
    Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd <
    00f5f1bbf815a39e9eecb468d12ca55d3360eb10
  - >-
    Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd <
    ad72c3c3f6eb81d2cb189ec71e888316adada5df
  - Linux 4.15
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T19:47:14.636721Z'
published: '2025-05-01'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T19:49:42.968Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-49772'
references:
  - url: 'https://git.kernel.org/stable/c/c43991065f36f7628cd124e037b8750c4617a7a7'
  - url: 'https://git.kernel.org/stable/c/e7dc436aea80308a9268e6d2d85f910ff107de9b'
  - url: 'https://git.kernel.org/stable/c/a80369c8ca50bc885d14386087a834659ec54a54'
  - url: 'https://git.kernel.org/stable/c/02b94885b2fdf1808b1874e009bfb90753f8f4db'
  - url: 'https://git.kernel.org/stable/c/00f5f1bbf815a39e9eecb468d12ca55d3360eb10'
  - url: 'https://git.kernel.org/stable/c/ad72c3c3f6eb81d2cb189ec71e888316adada5df'
tags:
  - cve.org
epss: 0.00202
epssPercentile: 0.10263
ingestedAt: '2026-11-05T22:38:31.587Z'
---

## Overview

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

- `Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd < c43991065f36f7628cd124e037b8750c4617a7a7`
- `Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd < e7dc436aea80308a9268e6d2d85f910ff107de9b`
- `Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd < a80369c8ca50bc885d14386087a834659ec54a54`
- `Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd < 02b94885b2fdf1808b1874e009bfb90753f8f4db`
- `Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd < 00f5f1bbf815a39e9eecb468d12ca55d3360eb10`
- `Linux >= 738d9edcfd44f154924692e54109fb439fcf8bdd < ad72c3c3f6eb81d2cb189ec71e888316adada5df`
- `Linux 4.15`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
