{"id":"CVE-2023-54022","published":"2025-12-24T10:55:52Z","modified":"2026-05-11T19:53:46Z","title":"ALSA: usb-audio: Fix potential memory leaks at error path for UMP open","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00173,"percentile":0.06652,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f819b343aa95d24d5f7d6e06660c7f62591abc5f","tags":[]},{"url":"https://git.kernel.org/stable/c/b1757fa30ef14f254f4719bf6f7d54a4c8207216","tags":[]}],"priority":{"score":1.3,"factors":[{"name":"EPSS percentile","points":1.33}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ff49d1df79aef7580fe3ac99d17c3f886655d080, < f819b343aa95d24d5f7d6e06660c7f62591abc5f",">= ff49d1df79aef7580fe3ac99d17c3f886655d080, < b1757fa30ef14f254f4719bf6f7d54a4c8207216"]},{"vendor":"Linux","product":"Linux","versions":["6.5"]}],"euvd":{"id":"EUVD-2025-205125","exploited":false,"provenance":"source"}}