# CVE-2021-47020: soundwire: stream: fix memory leak in stream config error path

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-02-29T22:31:14.086Z
- Modified: 2026-06-17T04:16:12.587Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

soundwire: stream: fix memory leak in stream config error path

When stream config is failed, master runtime will release all
slave runtime in the slave_rt_list, but slave runtime is not
added to the list at this time. This patch frees slave runtime
in the config error path to fix the memory leak.

(As written by CVE List.)

## Affected

- Linux Linux: from 89e590535f32d4bc548bcf266f3b046e50942f6d before 342260fe821047c3d515e3d28085d73fbdce3e80; from 89e590535f32d4bc548bcf266f3b046e50942f6d before 870533403ffa28ff63e173045fc5369365642002; from 89e590535f32d4bc548bcf266f3b046e50942f6d before 7c468deae306d0cbbd539408c26cfec04c66159a; from 89e590535f32d4bc548bcf266f3b046e50942f6d before 2f17ac005b320c85d686088cfd4c2e7017912b88; from 89e590535f32d4bc548bcf266f3b046e50942f6d before effd2bd62b416f6629e18e3ce077c60de14cfdea; from 89e590535f32d4bc548bcf266f3b046e50942f6d before 48f17f96a81763c7c8bf5500460a359b9939359f; 4.18 (not affected: before 4.18; from 4.19.191 up to 4.19.*; from 5.4.119 up to 5.4.*; from 5.10.37 up to 5.10.*; from 5.11.21 up to 5.11.*; from 5.12.4 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.18 before 4.19.191; from 4.20 before 5.4.119; from 5.5 before 5.10.37; from 5.11 before 5.11.21; from 5.12 before 5.12.4

## References

- <https://git.kernel.org/stable/c/342260fe821047c3d515e3d28085d73fbdce3e80> (patch)
- <https://git.kernel.org/stable/c/870533403ffa28ff63e173045fc5369365642002> (patch)
- <https://git.kernel.org/stable/c/7c468deae306d0cbbd539408c26cfec04c66159a> (patch)
- <https://git.kernel.org/stable/c/2f17ac005b320c85d686088cfd4c2e7017912b88> (patch)
- <https://git.kernel.org/stable/c/effd2bd62b416f6629e18e3ce077c60de14cfdea> (patch)
- <https://git.kernel.org/stable/c/48f17f96a81763c7c8bf5500460a359b9939359f> (patch)

## Sources

- CVE List: [CVE-2021-47020](https://www.cve.org/CVERecord?id=CVE-2021-47020), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47020](https://nvd.nist.gov/vuln/detail/CVE-2021-47020), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47020 · Whole record: https://cve.day/CVE-2021-47020.json · Rebuilt by cve.day 2026-11-25T22:58:08.638Z
