{"id":"CVE-2022-49772","summary":"ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()\n\nsnd_usbmidi_output_open() has a check of the NULL port with\nsnd_BUG_ON().  snd_BUG_ON() was used as this shouldn't have happened,\nbut in reality, the NULL port may be seen when the device gives an\ninvalid endpoint setup at the descriptor, hence the driver skips the\nallocation.  That is, the check itself is valid and snd_BUG_ON()\nshould be dropped from there.  Otherwise it's confusing as if it were\na real bug, as recently syzbot stumbled on it.","modified":"2026-04-03T13:14:41.135031503Z","published":"2025-05-01T14:09:09.697Z","related":["SUSE-SU-2025:01918-1","SUSE-SU-2025:01966-1","SUSE-SU-2025:01982-1","SUSE-SU-2025:01983-1","SUSE-SU-2025:01995-1","SUSE-SU-2025:02173-1","SUSE-SU-2025:02262-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49772.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/00f5f1bbf815a39e9eecb468d12ca55d3360eb10"},{"type":"WEB","url":"https://git.kernel.org/stable/c/02b94885b2fdf1808b1874e009bfb90753f8f4db"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a80369c8ca50bc885d14386087a834659ec54a54"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ad72c3c3f6eb81d2cb189ec71e888316adada5df"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c43991065f36f7628cd124e037b8750c4617a7a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e7dc436aea80308a9268e6d2d85f910ff107de9b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49772.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49772"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"738d9edcfd44f154924692e54109fb439fcf8bdd"},{"fixed":"c43991065f36f7628cd124e037b8750c4617a7a7"},{"fixed":"e7dc436aea80308a9268e6d2d85f910ff107de9b"},{"fixed":"a80369c8ca50bc885d14386087a834659ec54a54"},{"fixed":"02b94885b2fdf1808b1874e009bfb90753f8f4db"},{"fixed":"00f5f1bbf815a39e9eecb468d12ca55d3360eb10"},{"fixed":"ad72c3c3f6eb81d2cb189ec71e888316adada5df"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49772.json"}}],"schema_version":"1.7.5"}