What’s Vulnerable › Vulnerabilities
CVE-2021-47020: soundwire: stream: fix memory leak in stream config error path
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-02-29 · updated 2026-06-17
- Weakness: CWE-401
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.
Affected products
- 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 — fixed in 4.19.191, 5.10.37, 5.11.21, 5.12.4, 5.4.119
How to fix
Upgrade to a fixed version: Linux kernel 4.19.191, 5.10.37, 5.11.21, 5.12.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2f17ac005b320c85d686088cfd4c2e7017912b88
- https://git.kernel.org/stable/c/342260fe821047c3d515e3d28085d73fbdce3e80
- https://git.kernel.org/stable/c/48f17f96a81763c7c8bf5500460a359b9939359f
- https://git.kernel.org/stable/c/7c468deae306d0cbbd539408c26cfec04c66159a
- https://git.kernel.org/stable/c/870533403ffa28ff63e173045fc5369365642002
- https://git.kernel.org/stable/c/effd2bd62b416f6629e18e3ce077c60de14cfdea
- https://git.kernel.org/stable/c/2f17ac005b320c85d686088cfd4c2e7017912b88
- https://git.kernel.org/stable/c/342260fe821047c3d515e3d28085d73fbdce3e80
- https://git.kernel.org/stable/c/48f17f96a81763c7c8bf5500460a359b9939359f
- https://git.kernel.org/stable/c/7c468deae306d0cbbd539408c26cfec04c66159a
- https://git.kernel.org/stable/c/870533403ffa28ff63e173045fc5369365642002
- https://git.kernel.org/stable/c/effd2bd62b416f6629e18e3ce077c60de14cfdea
Get alerted when CVE-2021-47020 or the next vulnerability affects your stack