# CVE-2021-47650: ASoC: soc-compress: prevent the potentially use of null pointer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-26T01:54:17.052Z
- **Modified:** 2026-11-05T20:16:55.650Z

## Who should check

- Anyone running Linux \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 68a69ad8df959e5211ed4a8e120783b2d352ea74; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 4639c1d97f385f4784f44d66a3da0672f4951ada; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< fc237b8d624f4bcb0f21a532627ce4e3b3a85569; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 08af6da684b44097ea09f1d74d5858b837ed203b; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< f69a75cb8a98c6c487d620442c68595726a69f60; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< de2c6f98817fa5decb9b7d3b3a8a3ab864c10588
- Anyone running Linux 5.4

## 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'.

## Affected and fixed versions

- Linux: \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 68a69ad8df959e5211ed4a8e120783b2d352ea74; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 4639c1d97f385f4784f44d66a3da0672f4951ada; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< fc237b8d624f4bcb0f21a532627ce4e3b3a85569; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 08af6da684b44097ea09f1d74d5858b837ed203b; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< f69a75cb8a98c6c487d620442c68595726a69f60; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< de2c6f98817fa5decb9b7d3b3a8a3ab864c10588 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47650. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47650.md
Affected: Linux >= 467fece8fbc6774a3a3bd0981e1a342fb5022706, < 68a69ad8df959e5211ed4a8e120783b2d352ea74; >= 467fece8fbc6774a3a3bd0981e1a342fb5022706, < 4639c1d97f385f4784f44d66a3da0672f4951ada; >= 467fece8fbc6774a3a3bd0981e1a342fb5022706, < fc237b8d624f4bcb0f21a532627ce4e3b3a85569; >= 467fece8fbc6774a3a3bd09…
Fixed in: Linux 68a69ad8df959e5211ed4a8e120783b2d352ea74, Linux 4639c1d97f385f4784f44d66a3da0672f4951ada, Linux 08af6da684b44097ea09f1d74d5858b837ed203b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47650 being exploited?

There is no confirmed exploitation: CVE-2021-47650 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47650?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47650?

Linux \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 68a69ad8df959e5211ed4a8e120783b2d352ea74; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 4639c1d97f385f4784f44d66a3da0672f4951ada; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< fc237b8d624f4bcb0f21a532627ce4e3b3a85569; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< 08af6da684b44097ea09f1d74d5858b837ed203b; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< f69a75cb8a98c6c487d620442c68595726a69f60; \>= 467fece8fbc6774a3a3bd0981e1a342fb5022706, \< de2c6f98817fa5decb9b7d3b3a8a3ab864c10588; Linux 5.4.

### Is there a fix for CVE-2021-47650?

Yes. Fixed in Linux 68a69ad8df959e5211ed4a8e120783b2d352ea74, Linux 4639c1d97f385f4784f44d66a3da0672f4951ada, Linux 08af6da684b44097ea09f1d74d5858b837ed203b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47650?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/68a69ad8df959e5211ed4a8e120783b2d352ea74>
- patch: <https://git.kernel.org/stable/c/4639c1d97f385f4784f44d66a3da0672f4951ada>
- patch: <https://git.kernel.org/stable/c/fc237b8d624f4bcb0f21a532627ce4e3b3a85569>
- patch: <https://git.kernel.org/stable/c/08af6da684b44097ea09f1d74d5858b837ed203b>
- patch: <https://git.kernel.org/stable/c/f69a75cb8a98c6c487d620442c68595726a69f60>
- patch: <https://git.kernel.org/stable/c/de2c6f98817fa5decb9b7d3b3a8a3ab864c10588>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47650>

HTML: <https://flawdb.com/CVE-2021-47650> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47650>
