Vulnerability in Kernel: riscv - Increase stack size under KASAN

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001308: riscv: Increase stack size under KASAN. Affects Kernel versions >= 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6, < b91e1db8a8fa56ce57410368b230527e1547439e. 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 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 →

Share this vulnerability

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.

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