Skip to content
Heist/ feed
Back to feed
UnratedFix available

ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.267, 5.10.156, 5.15.80, 5.4.225, 6.0.10
CVEs
CVE-2022-49772
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 17:40 UTC · Revision 1

Source evidence

ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open()

core-osv · Original source

Published 1 May 2025, 14:09 UTC

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.

osv:CVE-2022-49772

Kernel

Fixed versions: 4.19.267, 5.4.225, 5.10.156, 5.15.80, 6.0.10

Complete source record
{
  "id": "d3b90b5509de936b4a7a304f0e2e2043b3abd118720c52858c806b43316a63e2",
  "url": "https://osv.dev/vulnerability/CVE-2022-49772",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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 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.",
    "evidence": "osv:CVE-2022-49772",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.267",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.225",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.156",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.80",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-49772",
      "aliases": [
        "CVE-2022-49772"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.267"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.225"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.156"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.80"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49772.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.860679727Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/00f5f1bbf815a39e9eecb468d12ca55d3360eb10",
        "https://git.kernel.org/stable/c/02b94885b2fdf1808b1874e009bfb90753f8f4db",
        "https://git.kernel.org/stable/c/a80369c8ca50bc885d14386087a834659ec54a54",
        "https://git.kernel.org/stable/c/ad72c3c3f6eb81d2cb189ec71e888316adada5df",
        "https://git.kernel.org/stable/c/c43991065f36f7628cd124e037b8750c4617a7a7",
        "https://git.kernel.org/stable/c/e7dc436aea80308a9268e6d2d85f910ff107de9b",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49772.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49772",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49772.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49772",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 497922,
  "published_at": "2025-05-01T14:09:09.697+00:00"
}