Increase stack size under KASAN in riscv
Summary
GSD-2022-1001614: riscv: Increase stack size under KASAN. Affects Kernel versions >= 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6, < f32e1212e579b6faaa9b4afb303f4d7dd2ecd898. 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 riscv package is a component of the Linux Kernel ecosystem. It is responsible for supporting the RISC-V architecture in the Linux operating system. The RISC-V architecture is an open-source instruction set architecture (ISA) designed for efficient and flexible computer systems. KASAN (Kernel Address SANitizer) is a feature in the Linux Kernel that helps detect and debug memory errors. This vulnerability specifically affects the riscv package when used with KASAN.
Vulnerability Detail
The vulnerability identified in the riscv package is related to the stack size under KASAN. The stack is a region of memory used for storing local variables and function call information. KASAN increases the stack size to perform memory error detection. However, the stack size increase in the riscv package under KASAN is insufficient, potentially leading to stack overflow and memory corruption. This vulnerability was introduced in version v5.6 of the Linux Kernel and has been fixed in version v5.16.19.
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 riscv package in the Linux Kernel is vulnerable to a stack size issue under KASAN. This vulnerability can potentially lead to stack overflow and memory corruption. It is recommended to update the package to version v5.16.19 or later to fix the issue. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The insufficient stack size under KASAN in the riscv package can lead to stack overflow and memory corruption. This can potentially be exploited by attackers to execute arbitrary code or cause a denial of service.
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 to the playground, and it will analyze the dependencies and alert you if any open-source vulnerabilities, including this one, are detected.
No specific workaround is mentioned for this vulnerability. It is recommended to update the riscv package to the fixed version (v5.16.19 or later) to address the issue.
The exact attack vector and exploitability of this vulnerability have not been proven. However, if an attacker can trigger a stack overflow or memory corruption, they may be able to execute arbitrary code or cause a denial of service remotely.
There are no known instances of this vulnerability being exploited in the wild. However, it is important to apply the necessary updates to mitigate the risk.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.