Vulnerability in Kernel package: spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware()
Summary
GSD-2021-1000382: spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware(). Affects Kernel versions >= 944c01a889d97dc08e1b71f4ed868f4023fd6034, < ce02e58ddf8658a4c3bed2296f32a5873b3f7cce. 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 Kernel package is a fundamental component of the Linux operating system. It provides the core functionality and interfaces for various hardware devices and software components. The spi module within the Kernel package is responsible for supporting Serial Peripheral Interface (SPI) communication between devices. The fsl-lpspi driver is a specific driver within the spi module that handles SPI communication for Freescale Low Power SPI (LP-SPI) controllers. This vulnerability, identified as GSD-2021-1000382, affects the fsl-lpspi driver and involves a reference leak in the lpspi_prepare_xfer_hardware() function.
Vulnerability Detail
The vulnerability in the fsl-lpspi driver arises from a reference leak in the lpspi_prepare_xfer_hardware() function. When preparing the hardware for SPI data transfer, the function fails to release a power management (PM) reference, leading to a reference leak. This can result in resource exhaustion and potential denial-of-service (DoS) scenarios. An attacker could potentially exploit this vulnerability to exhaust system resources, leading to system instability or crashes. The vulnerability was introduced in version v5.2 of the Linux Kernel and has been fixed in version v5.10.37.
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 vulnerability by disabling or not using the fsl-lpspi driver. This can be achieved by blacklisting the driver module or removing any configurations that rely on the fsl-lpspi driver. However, this workaround may not be feasible in scenarios where the fsl-lpspi driver is essential for the desired functionality.
Conclusion
In conclusion, the vulnerability in the fsl-lpspi driver of the Kernel package can lead to resource exhaustion and potential denial-of-service scenarios. It is recommended to update the Linux Kernel package to version v5.10.37 or later to fix this vulnerability. Alternatively, users can consider disabling or avoiding the fsl-lpspi driver as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to resource exhaustion and potential denial-of-service (DoS) scenarios. It may result in system instability or crashes.
You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities.
At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix or update to mitigate the risk.
As a temporary workaround, you can disable or avoid using the fsl-lpspi driver. However, this may not be feasible in scenarios where the driver is necessary for desired functionality.
For more information about this vulnerability, you can refer to the vulnerability details in the GSD database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000382.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.