ALSA: usb-audio: qcom: reject stream disable with no active interface
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 25a867aa5e67a84333fa6e5c21292c5bcff86b90, Kernel a22356d1f731553e99aa2707dbd38c659bdd28d8, Kernel bdb640be82e645e2828731648f485224d0c2587b and 2 more.
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: qcom: reject stream disable with no active interface handle_uaudio_stream_req() resolves an interface index with info_idx_from_ifnum(), which returns -EINVAL when no interface matches. The enable branch and the response: cleanup label both guard against a negative index, but the disable branch does not: it forms info = &uadev[pcm_card_num].info[info_idx] and dereferences it. uadev[].info is a pointer allocated only when a stream is first enabled, so a negative info_idx on the disable path is unsafe in two ways: - If the card was never enabled, .info is NULL and &info[-EINVAL] is a wild pointer; reading info->data_ep_pipe faults (kernel oops). - If the card was enabled at least once (.info allocated) and the disable names an interface that does not match, &info[-EINVAL] points before the allocation; info->data_ep_pipe / info->sync_ep_pipe are an out-of-bounds slab read and, when non-zero, an out-of-bounds 4-byte write (both pipe fields are cleared to 0). That is memory corruption, not just a NULL dereference. The request is reachable from unprivileged local userspace over AF_QIPCRTR. Reject a disable request with no resolved interface, matching the guard the enable path already has.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=326bbc348298ab0946c5560defe024a5f6ef28bb <25a867aa5e67a84333fa6e5c21292c5bcff86b90, >=326bbc348298ab0946c5560defe024a5f6ef28bb <a22356d1f731553e99aa2707dbd38c659bdd28d8, >=326bbc348298ab0946c5560defe024a5f6ef28bb <bdb640be82e645e2828731648f485224d0c2587b | 25a867aa5e67a84333fa6e5c21292c5bcff86b90, a22356d1f731553e99aa2707dbd38c659bdd28d8, bdb640be82e645e2828731648f485224d0c2587b |
| linux-kernel: Kernel | >=6.16.0 <6.18.40, >=6.19.0 <7.1.5 | 6.18.40, 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket