CVE-2023-54022
Last modified
CVE-2023-54022 is a vulnerability of currently unknown severity. 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(). EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
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.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= ff49d1df79aef7580fe3ac99d17c3f886655d080, < f819b343aa95d24d5f7d6e06660c7f62591abc5f; >= ff49d1df79aef7580fe3ac99d17c3f886655d080, < b1757fa30ef14f254f4719bf6f7d54a4c8207216 |
| Linux | Linux | 6.5 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2023-54022?
How severe is CVE-2023-54022?
How do I fix CVE-2023-54022?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-54017In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54018In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54019In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-5402 A CWE-269: Improper Privilege Management vulnerability ex…9.8
- CVE-2023-54020In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54021In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54023In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54024In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54025In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54026In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-54027In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54028In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2023-54022?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
