CVE-2021-47650
ASoC: soc-compress: prevent the potentially use of null pointer
Check your servers for CVE-2021-47650
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-2021-47650 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:
ASoC: soc-compress: prevent the potentially use of null pointer
There is one call trace that snd_soc_register_card() ->snd_soc_bind_card()->soc_init_pcm_runtime() ->snd_soc_dai_compress_new()->snd_soc_new_compress(). In the trace the 'codec_dai' transfers from card->dai_link, and we can see from the snd_soc_add_pcm_runtime() in snd_soc_bind_card() that, if value of card->dai_link->num_codecs is 0, then 'codec_dai' could be null pointer caused by index out of bound in 'asoc_rtd_to_codec(rtd, 0)'. And snd_soc_register_card() is called by various platforms. Therefore, it is better to add the check in the case of misusing. And because 'cpu_dai' has already checked in soc_init_pcm_runtime(), there is no need to check again. Adding the check as follow, then if 'codec_dai' is null, snd_soc_new_compress() will not pass through the check 'if (playback + capture != 1)', avoiding the leftover use of 'codec_dai'.
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- 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 467fece8fbc6774a3a3bd0981e1a342fb5022706, before 68a69ad8df959e5211ed4a8e120783b2d352ea74 affected from 467fece8fbc6774a3a3bd0981e1a342fb5022706, before 4639c1d97f385f4784f44d66a3da0672f4951ada affected from 467fece8fbc6774a3a3bd0981e1a342fb5022706, before fc237b8d624f4bcb0f21a532627ce4e3b3a85569 affected from 467fece8fbc6774a3a3bd0981e1a342fb5022706, before 08af6da684b44097ea09f1d74d5858b837ed203b affected from 467fece8fbc6774a3a3bd0981e1a342fb5022706, before f69a75cb8a98c6c487d620442c68595726a69f60 affected from 467fece8fbc6774a3a3bd0981e1a342fb5022706, before de2c6f98817fa5decb9b7d3b3a8a3ab864c10588
Other versions: unaffected
|
| Linux |
affected 5.4 unaffected before 5.4 unaffected from 5.4.189 up to and including 5.4.* unaffected from 5.10.110 up to and including 5.10.* unaffected from 5.15.33 up to and including 5.15.* unaffected from 5.16.19 up to and including 5.16.* unaffected from 5.17.2 up to and including 5.17.* unaffected 5.18 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-2021-47650 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47650
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-2021-47650
trivy image --scanners vuln IMAGE | grep CVE-2021-47650
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/68a69ad8df959e5211ed4a8e120783b2d352ea74 git.kernel.org
- https://git.kernel.org/stable/c/4639c1d97f385f4784f44d66a3da0672f4951ada git.kernel.org
- https://git.kernel.org/stable/c/fc237b8d624f4bcb0f21a532627ce4e3b3a85569 git.kernel.org
- https://git.kernel.org/stable/c/08af6da684b44097ea09f1d74d5858b837ed203b git.kernel.org
- https://git.kernel.org/stable/c/f69a75cb8a98c6c487d620442c68595726a69f60 git.kernel.org
- https://git.kernel.org/stable/c/de2c6f98817fa5decb9b7d3b3a8a3ab864c10588 git.kernel.org
Source: the record CVE-2021-47650 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