Moderate Security Update for glib2: Addressing Multiple Buffer Over-Reads and DoS Vulnerabilities
Summary
ALSA-2026:55440: Moderate: glib2 security update. Affects glib2 versions < 2.68.4-19.el9_8.9. Fixed in 2.68.4-19.el9_8.9. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
GLib is a fundamental library that provides essential application building blocks for C programming. It serves as the core object system for GNOME, offering a main loop implementation and a variety of utility functions for string manipulation and data structures. This library is widely used in various applications, making its security critical. The recent vulnerabilities discovered in glib2 could potentially impact applications relying on this library, leading to security risks such as data exposure and denial of service.
Vulnerability Detail
The vulnerabilities in glib2 include multiple buffer over-reads, out-of-bounds reads, and an off-by-one error, which can lead to data leakage or application crashes. Specifically, issues arise from functions like gvs_tuple_is_normal(), g_date_time_get_ymd, g_regex_replace(), and g_io_channel_read_line_backend. Additionally, a path traversal vulnerability in gdbusauthmechanismsha1.c could allow unauthorized access to sensitive data. The GDBusServer also faces a denial of service risk due to unbounded SASL line buffering, which could be exploited to disrupt service availability.
How To Fix
Minimum fixed version
2.68.4-19.el9_8.9
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, consider limiting the use of affected functions and implementing input validation to mitigate risks associated with buffer over-reads and out-of-bounds reads. However, the best course of action is to apply the security update as soon as possible.
Conclusion
The vulnerabilities in glib2 pose significant risks to applications relying on this library. It is crucial to update to the latest patched version to mitigate these risks effectively. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain application security.
See every vulnerability recorded for glib2 →
FAQ
Glib2 is a low-level core library that forms the basis for many applications and libraries in the GNOME ecosystem, providing essential data structures and utilities.
The vulnerabilities include buffer over-reads, out-of-bounds reads, an off-by-one error, and a denial of service risk, which could lead to data exposure and application crashes.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.
Yes, a patched version of glib2 (2.68.4-19.el9_8.9) is available. Updating to this version will resolve the identified vulnerabilities.
If an immediate update is not possible, implement input validation and limit the use of affected functions as a temporary workaround until the update can be applied.
Related vulnerabilities
Recent vulnerabilities recorded for glib2.