Critical Security Flaw in glib2: Integer Underflow Vulnerability

glib2 Updated 21 Jul 2026

Summary

20/07/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:42090: Important: glib2 security update. Affects glib2 versions < 2.56.4-170.el8_10. Fixed in 2.56.4-170.el8_10. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

GLib is an essential library that provides core application building blocks for C-based libraries and applications. It underpins the GNOME desktop environment and offers a wide array of utility functions for string manipulation and data structures. The library is widely used across various applications, making its security paramount. The recent vulnerability identified as CVE-2026-58016 exposes GLib to an integer underflow issue, which could potentially lead to severe security breaches.

Vulnerability Detail

The vulnerability arises from an integer underflow in the file gio/gdbusintrospection.c, specifically through the function 'g_dbus_node_info_new_for_xml'. This flaw allows attackers to manipulate the function's input, potentially leading to unexpected behavior or exploitation of the application utilizing GLib. The ramifications of this vulnerability could range from denial of service to arbitrary code execution, depending on how the affected applications handle the flawed library.

How To Fix

Minimum fixed version

2.56.4-170.el8_10

This is the first release that contains the fix.

sudo dnf update glib2

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

Workaround

As a temporary measure, users can avoid using the affected function 'g_dbus_node_info_new_for_xml' until the package is updated. However, this may limit certain functionalities of applications relying on GLib.

Conclusion

The glib2 vulnerability identified as CVE-2026-58016 poses significant risks to applications relying on this library. It is essential for users to update their packages to the patched version to ensure security. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for glib2 →

Share this vulnerability

FAQ

CVE-2026-58016 is a security vulnerability in GLib that results from an integer underflow in the function 'g_dbus_node_info_new_for_xml'.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. Visit Vulert Scanner to check your application's status without needing to sign up.

The vulnerability could lead to denial of service or arbitrary code execution, depending on how applications using GLib handle the flaw.

Yes, a patch is available in version 2.56.4-170.el8_10 and later. Updating to this version will resolve the vulnerability.

If immediate updates are not possible, avoid using the affected function 'g_dbus_node_info_new_for_xml' as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for glib2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.56.4-170.el8_10

This is the first release that contains the fix.

sudo dnf update glib2

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