CVE-2022-48702 json
ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc()
published 2024-05-03 2 y ago modified 2026-08-05 3 mo ago also EUVD-2022-53581
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- Linux Linux 4.9.328, 4.14.293, 4.19.258, 5.4.213, 5.10.143, 5.15.68, 5.19.9, 6.0
- linux Debian 14, Debian 13, Debian 12 5.19.11-1
debian advisories DEBIAN-CVE-2022-48702
- linux Ubuntu 18.04 LTS 4.15.0-201.212
- linux Ubuntu 20.04 LTS 5.4.0-136.153
- linux Ubuntu 22.04 LTS 5.15.0-57.63
- linux-aws Ubuntu 18.04 LTS 4.15.0-1147.159
- linux-aws Ubuntu 20.04 LTS 5.4.0-1093.101
- linux-aws Ubuntu 22.04 LTS 5.15.0-1027.31
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1097.106
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1026.33
ubuntu advisories UBUNTU-CVE-2022-48702
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.106.1
- kernel-source-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.106.1
- kernel-64kb SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS, SLE High Performance Computing 15 SP4-ESPOS 5.14.21-150400.24.122.2
- kernel-syms SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.122.1
- kernel-source SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.122.1
- kernel-default SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +9 more 5.14.21-150400.24.122.2
- kernel-zfcpdump SLES 15 SP4-LTSS, Manager Server 4.3 5.14.21-150400.24.122.2
- kernel-obs-build SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.122.2
suse advisories SUSE-SU-2025:0231-1SUSE-SU-2024:2189-1SUSE-SU-2024:2184-1SUSE-SU-2024:2011-1SUSE-SU-2024:1983-1SUSE-SU-2024:1663-1
- git.kernel.org/stable/c/637c5310acb48fffcc5657568db3f3e9bc719bfa commit
- git.kernel.org/stable/c/6b0e260ac3cf289e38446552461caa65e6dab275 commit
- git.kernel.org/stable/c/88aac6684cf8bc885cca15463cb4407e91f28ff7 commit
- git.kernel.org/stable/c/45321a7d02b7cf9b3f97e3987fc1e4d649b82da2 commit
- git.kernel.org/stable/c/39a90720f3abe96625d1224e7a7463410875de4c commit
- git.kernel.org/stable/c/45814a53514e10a8014906c882e0d0d38df39cc1 commit
- git.kernel.org/stable/c/4204a01ffce97cae1d59edc5848f02be5b2b9178 commit
- git.kernel.org/stable/c/d29f59051d3a07b81281b2df2b8c9dfe4716067f commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-48702 updated cvss 5.5
kernel: ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-129 Improper Validation of Array Index
- Technology feeds
References
-
git.kernel.org
/stable/c/637c5310acb48fffcc5657568db3f3e9bc719bfa
patch
-
git.kernel.org
/stable/c/6b0e260ac3cf289e38446552461caa65e6dab275
patch
-
git.kernel.org
/stable/c/88aac6684cf8bc885cca15463cb4407e91f28ff7
patch
-
git.kernel.org
/stable/c/45321a7d02b7cf9b3f97e3987fc1e4d649b82da2
patch
-
git.kernel.org
/stable/c/39a90720f3abe96625d1224e7a7463410875de4c
patch
-
git.kernel.org
/stable/c/45814a53514e10a8014906c882e0d0d38df39cc1
patch
-
git.kernel.org
/stable/c/4204a01ffce97cae1d59edc5848f02be5b2b9178
patch
-
git.kernel.org
/stable/c/d29f59051d3a07b81281b2df2b8c9dfe4716067f
patch
Sources
- CVE List CVE-2022-48702
- NVD CVE-2022-48702
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.