CVE-2023-54022
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Fix potential memory leaks at error path for UMP open The allocation and initialization errors at alloc_midi_urbs() that is called at MIDI 2.0 / UMP device are supposed to be handled at the caller side by invoking free_midi_urbs(). However, free_midi_urbs() loops only for ep->num_urbs entries, and since ep->num_entries wasn't updated yet at the allocation / init error in alloc_midi_urbs(), this entry won't be released. The intention of free_midi_urbs() is to release the whole elements, so change the loop size to NUM_URBS to scan over all elements for fixing the missed releases. Also, the call of free_midi_urbs() is missing at snd_usb_midi_v2_open(). Although it'll be released later at reopen/close or disconnection, it's better to release immediately at the error path.
Affected versions
Linux kernel versions
6.5
and later are affected. Fixed in
6.5.3,
6.6
and their respective stable series.
References
The following references provide additional information about CVE-2023-54022 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/b1757fa30ef14f254f4719bf6f7d54a4c8207216
-
PatchKernel patch commithttps://git.kernel.org/stable/c/f819b343aa95d24d5f7d6e06660c7f62591abc5f
Frequently asked questions
-
What is CVE-2023-54022?
CVE-2023-54022 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.5 onward and has been patched in 6.5.3 and 6.6. CVE-2023-54022 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2023-54022?
Yes — CVE-2023-54022 has been patched. Fixed versions include 6.5.3 and 6.6. If you are running Linux kernel 6.5 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2023-54022 actively exploited?
No — CVE-2023-54022 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.