{"id":"CVE-2023-54022","aliases":["CVE-2023-54022"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: usb-audio: Fix potential memory leaks at error path for UMP open","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Fix potential memory leaks at error path for UMP open\n\nThe allocation and initialization errors at alloc_midi_urbs() that is\ncalled at MIDI 2.0 / UMP device are supposed to be handled at the\ncaller side by invoking free_midi_urbs().  However, free_midi_urbs()\nloops only for ep->num_urbs entries, and since ep->num_entries wasn't\nupdated yet at the allocation / init error in alloc_midi_urbs(), this\nentry won't be released.\n\nThe intention of free_midi_urbs() is to release the whole elements, so\nchange the loop size to NUM_URBS to scan over all elements for fixing\nthe missed releases.\n\nAlso, the call of free_midi_urbs() is missing at\nsnd_usb_midi_v2_open().  Although it'll be released later at\nreopen/close or disconnection, it's better to release immediately at\nthe error path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Fix potential memory leaks at error path for UMP open\n\nThe allocation and initialization errors at alloc_midi_urbs() that is\ncalled at MIDI 2.0 / UMP device are supposed to be handled at the\ncaller side by invoking free_midi_urbs().  However, free_midi_urbs()\nloops only for ep->num_urbs entries, and since ep->num_entries wasn't\nupdated yet at the allocation / init error in alloc_midi_urbs(), this\nentry won't be released.\n\nThe intention of free_midi_urbs() is to release the whole elements, so\nchange the loop size to NUM_URBS to scan over all elements for fixing\nthe missed releases.\n\nAlso, the call of free_midi_urbs() is missing at\nsnd_usb_midi_v2_open().  Although it'll be released later at\nreopen/close or disconnection, it's better to release immediately at\nthe error path.","source":"cvelist"}],"published":"2025-12-24T10:55:52.045Z","modified":"2026-06-17T06:46:33.313Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ff49d1df79aef7580fe3ac99d17c3f886655d080","fixed":"f819b343aa95d24d5f7d6e06660c7f62591abc5f","status":"affected"},{"type":"git","introduced":"ff49d1df79aef7580fe3ac99d17c3f886655d080","fixed":"b1757fa30ef14f254f4719bf6f7d54a4c8207216","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.5.3","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f819b343aa95d24d5f7d6e06660c7f62591abc5f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1757fa30ef14f254f4719bf6f7d54a4c8207216","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54022","url":"https://www.cve.org/CVERecord?id=CVE-2023-54022","licence":"CVE Terms of Use","modified":"2026-05-11T19:53:46.898Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54022","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54022","licence":"Public domain","modified":"2026-06-17T06:46:33.313Z"}],"updatedAt":"2026-11-25T22:58:35.145Z","epss":{"score":0.00185,"percentile":0.08493,"date":"2026-12-01T12:00:22.000Z"}}