Vulnerability in Kernel package: serial: rp2: use 'request_firmware' instead of 'request_firmware_nowait'
Summary
GSD-2021-1000562: serial: rp2: use 'request_firmware' instead of 'request_firmware_nowait'. Affects Kernel versions < 9b07b6973f7359e2dd6a9fe6db0c142634c823b7. 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 the system's hardware, software, and processes. The serial module within the Kernel package is responsible for managing serial communication between devices. This vulnerability specifically affects the rp2 driver in the serial module.
Vulnerability Detail
The vulnerability arises from the use of the 'request_firmware_nowait' function in the rp2 driver. This function allows firmware to be loaded asynchronously, potentially leading to race conditions and other security issues. Attackers may exploit this vulnerability to execute arbitrary code, escalate privileges, or cause denial-of-service conditions. The vulnerability has been addressed in Linux Kernel version v5.12.9 by replacing 'request_firmware_nowait' with the safer 'request_firmware' function.
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
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the Kernel package's rp2 driver is vulnerable to a race condition issue when using the 'request_firmware_nowait' function. This vulnerability can be mitigated by updating the Linux Kernel package to version v5.12.9 or later. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability could allow attackers to execute arbitrary code, escalate privileges, or cause denial-of-service conditions.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any 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 as soon as possible to mitigate any potential risks.
The vulnerability was introduced in an unknown version of the Kernel package and has been fixed in version v5.12.9. It is recommended to update to this version or later to ensure the vulnerability is addressed.
You can find more information about this vulnerability in the Cloud Security Alliance's GSD database: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000562.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.