Memory Leak in soundwire: stream Configuration
Summary
GSD-2021-1000458: soundwire: stream: fix memory leak in stream config error path. Affects Kernel versions >= 89e590535f32d4bc548bcf266f3b046e50942f6d, < 342260fe821047c3d515e3d28085d73fbdce3e80. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The soundwire package is a component of the Linux Kernel that provides support for SoundWire audio interfaces. SoundWire is a digital audio bus technology used in various devices, including smartphones, tablets, and laptops. It enables high-quality audio streaming and control between different audio components. However, a vulnerability has been identified in the soundwire: stream configuration, which can lead to a memory leak issue.
Vulnerability Detail
The vulnerability in the soundwire: stream configuration arises from a memory leak in the error path of the stream configuration process. When an error occurs during the configuration of a soundwire stream, the memory allocated for the configuration is not properly released, resulting in a memory leak. This can lead to a gradual depletion of available memory resources, potentially causing system instability or denial of service. The vulnerability was introduced in version v4.18 of the Linux Kernel and has been fixed in version v4.19.191.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, users can avoid the memory leak issue by ensuring that the soundwire stream configuration process does not encounter any errors. This can be achieved by carefully configuring the soundwire stream parameters and verifying the correctness of the configuration before applying it.
Conclusion
In conclusion, the soundwire: stream configuration vulnerability in the Linux Kernel can lead to a memory leak issue. It is crucial to update the Kernel to version v4.19.191 or later to mitigate this vulnerability. Alternatively, users can follow the provided workaround to avoid encountering the memory leak. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
SoundWire is a digital audio bus technology used in various devices to enable high-quality audio streaming and control between different audio components.
The vulnerability can result in a memory leak, leading to a gradual depletion of available memory resources. This can potentially cause system instability or denial of service.
The vulnerability was introduced in version v4.18 of the Linux Kernel. Versions prior to v4.19.191 are affected.
To fix this vulnerability, update the Linux Kernel to version v4.19.191 or later. The fix can be found in commit 342260fe821047c3d515e3d28085d73fbdce3e80 of the Linux Kernel repository.
Yes, as a workaround, ensure that the soundwire stream configuration process does not encounter any errors by carefully configuring the parameters and verifying the configuration before applying it.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.