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

Medium 5.5 Published Updated

A null pointer dereference in the ALSA USB MIDI driver can cause a kernel crash when processing invalid device descriptors.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49772?

CVE-2022-49772 is a medium-severity vulnerability in Linux kernel, published on 1 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2022-49772?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49772?

Apply the vendor's patch.

Is CVE-2022-49772 being exploited?

There is no known exploitation of CVE-2022-49772 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49772, GHSA-x2w3-4grf-5r9f, UBUNTU-CVE-2022-49772.

Is CVE-2022-49772 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free