Unreliable __builtin_frame_address(1) in riscv Kernel
Summary
GSD-2022-1000421: riscv: eliminate unreliable __builtin_frame_address(1). Affects Kernel versions >= eac2f3059e02382d91f8c887462083841d6ea2a3, < 71f46f3d1bf29ee5b0a53dc21462125f754491dd. 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 part of the Linux Kernel ecosystem. It provides support for the RISC-V architecture, which is an open-source instruction set architecture (ISA) designed for computer processors. The __builtin_frame_address(1) function is used in the riscv package to obtain the address of the calling function's stack frame. However, this function has been found to be unreliable and can lead to potential security vulnerabilities.
Vulnerability Detail
The vulnerability arises from the unreliable nature of the __builtin_frame_address(1) function in the riscv package. This function is used to determine the address of the calling function's stack frame, but its results can be inconsistent and incorrect. This inconsistency can potentially be exploited by attackers to manipulate the stack frame and execute arbitrary code. The impact and attack plausibility of this vulnerability have not been proven yet.
How To Fix
No fixed version is published for this vulnerability.
The vulnerability has been fixed in the Linux Kernel version v5.15.24 by commit 71f46f3d1bf29ee5b0a53dc21462125f754491dd. To fix the vulnerability, users of the riscv package should update their Linux Kernel to version v5.15.24 or later.
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
The riscv package in the Linux Kernel is affected by an unreliable __builtin_frame_address(1) function, which can potentially be exploited by attackers. It is recommended to update the Linux Kernel to version v5.15.24 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The riscv package is a part of the Linux Kernel ecosystem and provides support for the RISC-V architecture.
__builtin_frame_address(1) is a function used in the riscv package to obtain the address of the calling function's stack frame.
The impact of this vulnerability is not yet proven, but it has the potential to be exploited by attackers to execute arbitrary code.
To fix this vulnerability, update your Linux Kernel to version v5.15.24 or later.
No specific workaround has been mentioned for this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.