Increase stack size under KASAN in riscv

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001614: riscv: Increase stack size under KASAN. Affects Kernel versions >= 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6, < f32e1212e579b6faaa9b4afb303f4d7dd2ecd898. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

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