CVE-2022-48702
ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc()
Check your servers for CVE-2022-48702
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-48702 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 9 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 637c5310acb48fffcc5657568db3f3e9bc719bfa affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 6b0e260ac3cf289e38446552461caa65e6dab275 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 88aac6684cf8bc885cca15463cb4407e91f28ff7 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 45321a7d02b7cf9b3f97e3987fc1e4d649b82da2 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 39a90720f3abe96625d1224e7a7463410875de4c affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 45814a53514e10a8014906c882e0d0d38df39cc1 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 4204a01ffce97cae1d59edc5848f02be5b2b9178 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before d29f59051d3a07b81281b2df2b8c9dfe4716067f
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 4.9.328 up to and including 4.9.* unaffected from 4.14.293 up to and including 4.14.* unaffected from 4.19.258 up to and including 4.19.* unaffected from 5.4.213 up to and including 5.4.* unaffected from 5.10.143 up to and including 5.10.* unaffected from 5.15.68 up to and including 5.15.* unaffected from 5.19.9 up to and including 5.19.* unaffected 6.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48702 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48702
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-48702
trivy image --scanners vuln IMAGE | grep CVE-2022-48702
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/637c5310acb48fffcc5657568db3f3e9bc719bfa git.kernel.org
- https://git.kernel.org/stable/c/6b0e260ac3cf289e38446552461caa65e6dab275 git.kernel.org
- https://git.kernel.org/stable/c/88aac6684cf8bc885cca15463cb4407e91f28ff7 git.kernel.org
- https://git.kernel.org/stable/c/45321a7d02b7cf9b3f97e3987fc1e4d649b82da2 git.kernel.org
- https://git.kernel.org/stable/c/39a90720f3abe96625d1224e7a7463410875de4c git.kernel.org
- https://git.kernel.org/stable/c/45814a53514e10a8014906c882e0d0d38df39cc1 git.kernel.org
- https://git.kernel.org/stable/c/4204a01ffce97cae1d59edc5848f02be5b2b9178 git.kernel.org
- https://git.kernel.org/stable/c/d29f59051d3a07b81281b2df2b8c9dfe4716067f git.kernel.org
Source: the record CVE-2022-48702 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse