Vulnerability in Kernel: riscv - Increase stack size under KASAN
Summary
GSD-2022-1001308: riscv: Increase stack size under KASAN. Affects Kernel versions >= 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6, < b91e1db8a8fa56ce57410368b230527e1547439e. 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 is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The riscv architecture is a popular open-source instruction set architecture used in various embedded systems and processors. KASAN (Kernel Address SANitizer) is a dynamic memory error detector in the Kernel that helps identify and fix memory bugs. However, a vulnerability has been discovered in the riscv implementation of KASAN, which requires an increase in the stack size to mitigate potential security risks.
Vulnerability Detail
The vulnerability in the riscv implementation of KASAN arises from an insufficient stack size, which can lead to stack overflow and potential memory corruption. Attackers may exploit this vulnerability to execute arbitrary code, escalate privileges, or cause denial-of-service conditions. The issue was introduced in Linux Kernel version v5.6 and has been fixed in version v5.17.2. The vulnerability has the potential to impact systems running on riscv architecture with KASAN enabled.
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 →
Conclusion
The vulnerability in the riscv implementation of KASAN, which results in an insufficient stack size, can potentially lead to stack overflow and memory corruption. It is crucial to update the Linux Kernel to version v5.17.2 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow attackers to execute arbitrary code, escalate privileges, or cause denial-of-service conditions on systems running on riscv architecture with KASAN enabled.
You can use Vulert's playground (https://vulert.com/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 in software.
No specific workaround has been provided for this vulnerability. It is recommended to update the Linux Kernel to the fixed version (v5.17.2 or later).
The exact attack vector and exploitability of this vulnerability have not been proven. However, if an attacker can gain access to a vulnerable system, they may be able to exploit this vulnerability.
There are no known instances of this vulnerability being exploited in the wild at the time of this report.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.