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-1001484: gcc-plugins/stackleak: Exactly match strings instead of prefixes. Affects Kernel versions < 59a1131272663ebfcb58b80b926c1aad6fd6d75b. 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 Kernel package is a fundamental component of the Linux operating system. It provides the core functionality and interfaces for interacting with hardware devices, managing processes, and implementing various system services. The gcc-plugins/stackleak vulnerability affects the Kernel package and specifically targets the stackleak plugin used by the GCC compiler. This plugin is responsible for detecting and preventing stack-based memory corruption vulnerabilities. However, the vulnerability arises from an issue in the plugin's string matching mechanism, which fails to exactly match strings and instead relies on prefixes. This flaw could potentially lead to false positives or false negatives in detecting stack-based memory corruption vulnerabilities.

Vulnerability Detail

The gcc-plugins/stackleak vulnerability in the Kernel package arises from the incorrect string matching mechanism used by the stackleak plugin. By relying on prefixes instead of exact string matches, the plugin may produce inaccurate results when detecting stack-based memory corruption vulnerabilities. This could lead to both false positives, where benign code is flagged as vulnerable, and false negatives, where actual vulnerabilities are missed. The impact of this vulnerability depends on the usage of the stackleak plugin and the reliance on its results for vulnerability detection. If the plugin is heavily relied upon, the presence of this vulnerability could result in the introduction of exploitable stack-based memory corruption vulnerabilities.

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 gcc-plugins/stackleak vulnerability in the Kernel package can introduce inaccuracies in stack-based memory corruption vulnerability detection. To mitigate this issue, it is crucial to update the Linux Kernel package to version v5.16.19 or later, which includes a fix for the vulnerability. Failure to address this vulnerability may result in the introduction of exploitable vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of the gcc-plugins/stackleak vulnerability depends on the usage of the stackleak plugin and the reliance on its results for vulnerability detection. If the plugin is heavily relied upon, the presence of this vulnerability could result in the introduction of exploitable stack-based memory corruption vulnerabilities.

To fix the gcc-plugins/stackleak vulnerability, it is recommended to update the Linux Kernel package to version v5.16.19 or later. This update includes a fix for the vulnerability in commit 59a1131272663ebfcb58b80b926c1aad6fd6d75b.

The stackleak plugin is used by the GCC compiler in the Kernel package to detect and prevent stack-based memory corruption vulnerabilities. It analyzes the code and identifies potential issues related to stack usage, helping to enhance the security of the Kernel.

False positives occur when benign code is incorrectly flagged as vulnerable, leading to unnecessary investigations or mitigations. False negatives, on the other hand, happen when actual vulnerabilities are missed, potentially leaving the system exposed to exploitation.

No specific workaround is mentioned for the gcc-plugins/stackleak vulnerability. It is recommended to apply the provided fix by updating the Linux Kernel package to the recommended 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