CVE-2022-48702
ALSA Emu10k1: Array Index Out-of-Bounds Access Vulnerability
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc() The voice allocator sometimes begins allocating from near the end of the array and then wraps around, however snd_emu10k1_pcm_channel_alloc() accesses the newly allocated voices as if it never wrapped around. This results in out of bounds access if the first voice has a high enough index so that first_voice + requested_voice_count > NUM_G (64). The more voices are requested, the more likely it is for this to occur. This was initially discovered using PipeWire, however it can be reproduced by calling aplay multiple times with 16 channels: aplay -r 48000 -D plughw:CARD=Live,DEV=3 -c 16 /dev/zero UBSAN: array-index-out-of-bounds in sound/pci/emu10k1/emupcm.c:127:40 index 65 is out of range for type 'snd_emu10k1_voice [64]' CPU: 1 PID: 31977 Comm: aplay Tainted: G W IOE 6.0.0-rc2-emu10k1+ #7 Hardware name: ASUSTEK COMPUTER INC P5W DH Deluxe/P5W DH Deluxe, BIOS 3002 07/22/2010 Call Trace: <TASK> dump_stack_lvl+0x49/0x63 dump_stack+0x10/0x16 ubsan_epilogue+0x9/0x3f __ubsan_handle_out_of_bounds.cold+0x44/0x49 snd_emu10k1_playback_hw_params+0x3bc/0x420 [snd_emu10k1] snd_pcm_hw_params+0x29f/0x600 [snd_pcm] snd_pcm_common_ioctl+0x188/0x1410 [snd_pcm] ? exit_to_user_mode_prepare+0x35/0x170 ? do_syscall_64+0x69/0x90 ? syscall_exit_to_user_mode+0x26/0x50 ? do_syscall_64+0x69/0x90 ? exit_to_user_mode_prepare+0x35/0x170 snd_pcm_ioctl+0x27/0x40 [snd_pcm] __x64_sys_ioctl+0x95/0xd0 do_syscall_64+0x5c/0x90 ? do_syscall_64+0x69/0x90 ? do_syscall_64+0x69/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd
INFO
Published Date :
May 3, 2024, 4:15 p.m.
Last Modified :
March 5, 2025, 3:11 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-48702
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-48702
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-48702
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 05, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-129 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.0:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.0:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.0:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 from (excluding) 4.14.293 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 from (excluding) 4.19.258 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (excluding) 4.9.328 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 from (excluding) 5.4.213 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 from (excluding) 5.10.143 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 from (excluding) 5.15.68 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.17 from (excluding) 5.19.9 Added Reference Type CVE: https://git.kernel.org/stable/c/39a90720f3abe96625d1224e7a7463410875de4c Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/39a90720f3abe96625d1224e7a7463410875de4c Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/4204a01ffce97cae1d59edc5848f02be5b2b9178 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/4204a01ffce97cae1d59edc5848f02be5b2b9178 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/45321a7d02b7cf9b3f97e3987fc1e4d649b82da2 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/45321a7d02b7cf9b3f97e3987fc1e4d649b82da2 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/45814a53514e10a8014906c882e0d0d38df39cc1 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/45814a53514e10a8014906c882e0d0d38df39cc1 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/637c5310acb48fffcc5657568db3f3e9bc719bfa Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/637c5310acb48fffcc5657568db3f3e9bc719bfa Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/6b0e260ac3cf289e38446552461caa65e6dab275 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/6b0e260ac3cf289e38446552461caa65e6dab275 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/88aac6684cf8bc885cca15463cb4407e91f28ff7 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/88aac6684cf8bc885cca15463cb4407e91f28ff7 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/d29f59051d3a07b81281b2df2b8c9dfe4716067f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d29f59051d3a07b81281b2df2b8c9dfe4716067f Types: Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/39a90720f3abe96625d1224e7a7463410875de4c Added Reference https://git.kernel.org/stable/c/4204a01ffce97cae1d59edc5848f02be5b2b9178 Added Reference https://git.kernel.org/stable/c/45321a7d02b7cf9b3f97e3987fc1e4d649b82da2 Added Reference https://git.kernel.org/stable/c/45814a53514e10a8014906c882e0d0d38df39cc1 Added Reference https://git.kernel.org/stable/c/637c5310acb48fffcc5657568db3f3e9bc719bfa Added Reference https://git.kernel.org/stable/c/6b0e260ac3cf289e38446552461caa65e6dab275 Added Reference https://git.kernel.org/stable/c/88aac6684cf8bc885cca15463cb4407e91f28ff7 Added Reference https://git.kernel.org/stable/c/d29f59051d3a07b81281b2df2b8c9dfe4716067f -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 28, 2024
Action Type Old Value New Value -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 14, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 03, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc() The voice allocator sometimes begins allocating from near the end of the array and then wraps around, however snd_emu10k1_pcm_channel_alloc() accesses the newly allocated voices as if it never wrapped around. This results in out of bounds access if the first voice has a high enough index so that first_voice + requested_voice_count > NUM_G (64). The more voices are requested, the more likely it is for this to occur. This was initially discovered using PipeWire, however it can be reproduced by calling aplay multiple times with 16 channels: aplay -r 48000 -D plughw:CARD=Live,DEV=3 -c 16 /dev/zero UBSAN: array-index-out-of-bounds in sound/pci/emu10k1/emupcm.c:127:40 index 65 is out of range for type 'snd_emu10k1_voice [64]' CPU: 1 PID: 31977 Comm: aplay Tainted: G W IOE 6.0.0-rc2-emu10k1+ #7 Hardware name: ASUSTEK COMPUTER INC P5W DH Deluxe/P5W DH Deluxe, BIOS 3002 07/22/2010 Call Trace: <TASK> dump_stack_lvl+0x49/0x63 dump_stack+0x10/0x16 ubsan_epilogue+0x9/0x3f __ubsan_handle_out_of_bounds.cold+0x44/0x49 snd_emu10k1_playback_hw_params+0x3bc/0x420 [snd_emu10k1] snd_pcm_hw_params+0x29f/0x600 [snd_pcm] snd_pcm_common_ioctl+0x188/0x1410 [snd_pcm] ? exit_to_user_mode_prepare+0x35/0x170 ? do_syscall_64+0x69/0x90 ? syscall_exit_to_user_mode+0x26/0x50 ? do_syscall_64+0x69/0x90 ? exit_to_user_mode_prepare+0x35/0x170 snd_pcm_ioctl+0x27/0x40 [snd_pcm] __x64_sys_ioctl+0x95/0xd0 do_syscall_64+0x5c/0x90 ? do_syscall_64+0x69/0x90 ? do_syscall_64+0x69/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd Added Reference kernel.org https://git.kernel.org/stable/c/637c5310acb48fffcc5657568db3f3e9bc719bfa [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/6b0e260ac3cf289e38446552461caa65e6dab275 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/88aac6684cf8bc885cca15463cb4407e91f28ff7 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/45321a7d02b7cf9b3f97e3987fc1e4d649b82da2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/39a90720f3abe96625d1224e7a7463410875de4c [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/45814a53514e10a8014906c882e0d0d38df39cc1 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/4204a01ffce97cae1d59edc5848f02be5b2b9178 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/d29f59051d3a07b81281b2df2b8c9dfe4716067f [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-48702
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-48702
weaknesses.