Increase stack size under KASAN in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002133: riscv: Increase stack size under KASAN. Affects Kernel versions >= 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6, < 34bc1f69bf569309e76e5dfd574ee9034ceca147. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux Kernel is a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for managing hardware resources, scheduling tasks, and facilitating communication between software and hardware components. The Kernel is responsible for ensuring the security and stability of the entire system. However, it is susceptible to vulnerabilities that can compromise its integrity and expose the system to potential attacks.

Vulnerability Detail

The identified vulnerability in the Linux Kernel involves the stack size under KASAN (Kernel Address Sanitizer). KASAN is a dynamic memory error detector that helps identify and mitigate memory-related bugs in the Kernel. The vulnerability arises from an insufficient stack size allocation, which can lead to stack overflow and subsequent memory corruption. An attacker could potentially exploit this vulnerability to execute arbitrary code, escalate privileges, or cause a denial-of-service (DoS) condition.

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 →

Workaround

As a workaround, users can manually modify the stack size under KASAN in the Kernel configuration. This can be achieved by adjusting the 'CONFIG_KASAN_STACK' parameter in the Kernel configuration file. However, it is strongly advised to apply the official fix by updating to the recommended Kernel version rather than relying on manual modifications.

Conclusion

The identified vulnerability in the Linux Kernel, which involves an insufficient stack size under KASAN, can be mitigated by updating the Kernel to version v5.10.110 or later. This update ensures that the stack size is appropriately increased, reducing the risk of stack overflow and memory corruption. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Linux Kernel is an open-source operating system kernel that provides essential functionality for managing hardware resources, scheduling tasks, and facilitating communication between software and hardware components.

KASAN (Kernel Address Sanitizer) is a dynamic memory error detector in the Linux Kernel that helps identify and mitigate memory-related bugs.

This vulnerability can potentially allow an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service (DoS) condition by exploiting stack overflow and memory corruption.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.110 or later, which includes the necessary fix for the stack size under KASAN.

Yes, a workaround involves manually modifying the stack size under KASAN in the Kernel configuration. However, it is strongly advised to apply the official fix by updating to the recommended Kernel version.

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