Unreliable __builtin_frame_address(1) in riscv Kernel

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000421: riscv: eliminate unreliable __builtin_frame_address(1). Affects Kernel versions >= eac2f3059e02382d91f8c887462083841d6ea2a3, < 71f46f3d1bf29ee5b0a53dc21462125f754491dd. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.