Integer Overflow Vulnerability in libgc

libgc Updated 02 Oct 2025

Summary

25/11/2016
N/A
Yes i
Unrated
Not published

DLA-721-1: libgc - security update. Affects libgc versions < 1:7.1-9.1+deb7u1. Fixed in 1:7.1-9.1+deb7u1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libgc is a garbage collector library used in Debian 7 Wheezy. It provides automatic memory management for applications written in C and C++. The library is responsible for allocating and deallocating memory dynamically. However, it is vulnerable to integer overflows in multiple places. When requested to allocate a large amount of memory, instead of failing the request, libgc may return a pointer to a small amount of memory, potentially leading to a buffer overwrite.

Vulnerability Detail

The integer overflow vulnerability in libgc arises from improper handling of memory allocation requests. When an application asks for a significant amount of memory, libgc may allocate a smaller portion instead, leading to potential buffer overflows. This can be exploited by an attacker to overwrite critical data or execute arbitrary code. The vulnerability poses a significant risk to the security and stability of applications utilizing libgc.

How To Fix

Minimum fixed version

1:7.1-9.1+deb7u1

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

There is no known workaround for this vulnerability. It is crucial to apply the security update provided by the Debian team to address the underlying issues in libgc.

Conclusion

The integer overflow vulnerability in libgc can have severe consequences, including data corruption and arbitrary code execution. It is crucial to update the libgc package to the latest version provided by Debian to mitigate these risks. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for libgc →

Share this vulnerability

FAQ

libgc is a garbage collector library used for automatic memory management in C and C++ applications.

The vulnerability can allow an attacker to perform buffer overflows, potentially leading to data corruption or arbitrary code execution.

The vulnerability affects Debian 7 Wheezy.

No, there is no known workaround. It is recommended to apply the provided security update.

To update the libgc package, you can use the package manager of your Debian 7 Wheezy system. Run the command 'apt-get update' followed by 'apt-get upgrade libgc' to install the latest version.

Related vulnerabilities

Recent vulnerabilities recorded for libgc.

How To Fix

Minimum fixed version

1:7.1-9.1+deb7u1

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