Memory Leak Vulnerability in tracing/histogram Package

Kernel Updated 02 Oct 2025

Summary

18/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000149: tracing/histogram: Fix a potential memory leak for kstrdup(). Affects Kernel versions >= 38b67e60b6b582e81f9db1b2e7176cbbfbd3e574, < 8a8878ebb596281f50fc0b9a6e1f23f0d7f154e8. 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 tracing/histogram package is a component of the Linux Kernel, which is responsible for collecting and analyzing various system events. It provides functionality for creating histograms to visualize the distribution of event data. The package utilizes the kstrdup() function for duplicating strings, which is vulnerable to a memory leak issue.

Vulnerability Detail

The vulnerability in the tracing/histogram package arises from a potential memory leak in the kstrdup() function. This function is used to allocate memory and duplicate strings. However, if an error occurs during the duplication process, the allocated memory is not properly freed, resulting in a memory leak. An attacker could potentially exploit this vulnerability to exhaust system memory resources, leading to a denial-of-service condition. The vulnerability was introduced in version v5.4.19 of the Linux Kernel and has been fixed in version v5.4.176.

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

In conclusion, the tracing/histogram package in the Linux Kernel is vulnerable to a memory leak issue in the kstrdup() function. This vulnerability can potentially lead to a denial-of-service condition. It is recommended to update the Linux Kernel to version v5.4.176 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability could potentially lead to a denial-of-service condition by exhausting system memory resources.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground and it will provide real-time alerts for open-source vulnerabilities.

There is no known exploit for this vulnerability at the moment. However, it is important to apply the recommended fix to prevent any potential exploitation.

No, the recommended fix for this vulnerability is to update the Linux Kernel to version v5.4.176 or later.

You can find more information about this vulnerability in the GSD-2022-1000149.json file available in the GSD database repository at https://github.com/cloudsecurityalliance/gsd-database.

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