Vulnerability in Kernel package: gcc-plugins/stackleak

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002224: gcc-plugins/stackleak: Exactly match strings instead of prefixes. Affects Kernel versions < f36dd10d1b9533129c86bc9b4f707fda1abfee06. 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 Penetration testing for web, API and mobile 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 package is a fundamental component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The gcc-plugins/stackleak vulnerability affects the Kernel package, specifically the stackleak plugin in the GCC compiler. This plugin is designed to detect and prevent stack-based buffer overflows by adding runtime checks to the generated code.

Vulnerability Detail

The gcc-plugins/stackleak vulnerability arises from an issue in the matching mechanism used by the plugin. Instead of exactly matching strings, it only matches prefixes. This flaw could potentially allow an attacker to bypass the stackleak protection and exploit stack-based buffer overflows. The impact and attack plausibility of this vulnerability have not been proven yet. However, it is crucial to address this issue to ensure the integrity and security of the Kernel package.

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

There is no specific workaround mentioned for this vulnerability.

Conclusion

The gcc-plugins/stackleak vulnerability in the Kernel package poses a potential risk of stack-based buffer overflows. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.4.189 or later. This update includes a fix for the vulnerability, ensuring that the stackleak plugin correctly matches strings. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven. However, if successfully exploited, it could lead to stack-based buffer overflows, potentially allowing an attacker to execute arbitrary code or gain elevated privileges.

You can use the Vulert playground at Vulert Scanner to check if your system is affected by the gcc-plugins/stackleak vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

No known exploit for the gcc-plugins/stackleak vulnerability has been reported at this time. However, it is essential to apply the recommended fix to mitigate any potential risks.

The vulnerability is present in versions of the Kernel package prior to v5.4.189. Therefore, it is recommended to update to this version or later to address the issue.

You can find more information about the gcc-plugins/stackleak vulnerability in the Linux Kernel's Git repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/. Additionally, the vulnerability details are available in the GSD-2022-1002224.json file of the GSD database, which can be accessed at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1002xxx/GSD-2022-1002224.json.

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