{"id":"CVE-2022-49772","aliases":["CVE-2022-49772"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: usb-audio: Se omite snd_BUG_ON() de snd_usbmidi_output_open(). snd_usbmidi_output_open() tiene una comprobación del puerto nulo con snd_BUG_ON(). Se usó snd_BUG_ON() porque esto no debería haber ocurrido, pero en realidad, el puerto nulo puede detectarse cuando el dispositivo proporciona una configuración de endpoint no válida en el descriptor, por lo que el controlador omite la asignación. Es decir, la comprobación en sí es válida y snd_BUG_ON() debería omitirse. De lo contrario, es confuso, como si se tratara de un error real, como lo detectó syzbot recientemente.","source":"nvd"}],"published":"2025-05-01T14:09:09.697Z","modified":"2026-11-05T20:17:09.857Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"738d9edcfd44f154924692e54109fb439fcf8bdd","fixed":"c43991065f36f7628cd124e037b8750c4617a7a7","status":"affected"},{"type":"git","introduced":"738d9edcfd44f154924692e54109fb439fcf8bdd","fixed":"e7dc436aea80308a9268e6d2d85f910ff107de9b","status":"affected"},{"type":"git","introduced":"738d9edcfd44f154924692e54109fb439fcf8bdd","fixed":"a80369c8ca50bc885d14386087a834659ec54a54","status":"affected"},{"type":"git","introduced":"738d9edcfd44f154924692e54109fb439fcf8bdd","fixed":"02b94885b2fdf1808b1874e009bfb90753f8f4db","status":"affected"},{"type":"git","introduced":"738d9edcfd44f154924692e54109fb439fcf8bdd","fixed":"00f5f1bbf815a39e9eecb468d12ca55d3360eb10","status":"affected"},{"type":"git","introduced":"738d9edcfd44f154924692e54109fb439fcf8bdd","fixed":"ad72c3c3f6eb81d2cb189ec71e888316adada5df","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"4.19.267","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.225","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.156","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.80","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.10","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.9.334"},{"status":"affected","introduced":"4.10","fixed":"4.14.300"},{"status":"affected","introduced":"4.15","fixed":"4.19.267"},{"status":"affected","introduced":"4.20","fixed":"5.4.225"},{"status":"affected","introduced":"5.5","fixed":"5.10.156"},{"status":"affected","introduced":"5.11","fixed":"5.15.80"},{"status":"affected","introduced":"5.16","fixed":"6.0.10"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c43991065f36f7628cd124e037b8750c4617a7a7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7dc436aea80308a9268e6d2d85f910ff107de9b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a80369c8ca50bc885d14386087a834659ec54a54","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02b94885b2fdf1808b1874e009bfb90753f8f4db","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00f5f1bbf815a39e9eecb468d12ca55d3360eb10","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad72c3c3f6eb81d2cb189ec71e888316adada5df","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T19:47:14.636Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49772","url":"https://www.cve.org/CVERecord?id=CVE-2022-49772","licence":"CVE Terms of Use","modified":"2026-11-05T19:49:42.968Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49772","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49772","licence":"Public domain","modified":"2026-11-05T20:17:09.857Z"}],"updatedAt":"2026-11-25T22:58:20.862Z","epss":{"score":0.00207,"percentile":0.11419,"date":"2026-12-02T12:00:21.000Z"}}