Integer Overflow Vulnerability in libgc Package Leading to Potential Denial of Service

libgc Updated 02 Oct 2025

Summary

12/12/2016
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2016-9427: Integer overflow vulnerability in bdwgc before 2016-09-27 allows attackers to cause client of bdwgc denial of service (heap buffer overflow crash) and possibly execute arbitrary code via huge allocation. Affects libgc versions < 1:7.6.4-0.3. Fixed in 1:7.6.4-0.3. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The libgc package, also known as Boehm-Demers-Weiser garbage collector, is a widely used memory management tool in various programming environments. It provides automatic memory management and is designed to be used in C and C++ applications. This package is essential for developers who want to avoid memory leaks and ensure efficient memory usage. However, it has been identified to have an integer overflow vulnerability that could lead to serious security issues.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2016-9427 is an integer overflow issue that affects versions of the bdwgc garbage collector prior to September 27, 2016. This flaw allows attackers to exploit the memory allocation process, potentially leading to a heap buffer overflow crash. In severe cases, this could allow attackers to execute arbitrary code, posing a significant risk to applications that rely on libgc for memory management.

How To Fix

Minimum fixed version

1:7.6.4-0.3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libgc

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can limit the size of memory allocations in their applications to avoid triggering the overflow. However, this is not a permanent solution and updating the package is strongly advised.

Conclusion

The integer overflow vulnerability in the libgc package poses a significant risk to applications that utilize this memory management tool. It is crucial for users to update to the patched version to safeguard their systems against potential exploits. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for libgc →

Share this vulnerability

FAQ

The integer overflow vulnerability can lead to a denial of service by crashing applications that use the libgc package and may allow attackers to execute arbitrary code.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

All versions of libgc prior to 1:7.6.4-0.3 are affected by this vulnerability.

Yes, the patched version of libgc is 1:7.6.4-0.3. Users should update to this version to mitigate the vulnerability.

If an immediate update is not possible, consider implementing temporary workarounds such as limiting memory allocation sizes in your applications.

Related vulnerabilities

Recent vulnerabilities recorded for libgc.

How To Fix

Minimum fixed version

1:7.6.4-0.3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libgc

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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