CVE-2026-58010: GLib Off-by-One Bounds Check Vulnerability – Information Disclosure and DoS
A flaw in GLib's variant serialization code contains an off-by-one error in boundary checking that allows reading one byte beyond intended memory limits. This can leak a small amount of sensitive data or crash applications when the out-of-bounds access crosses memory page boundaries. The vulnerability affects GLib across multiple Linux distributions and requires network access to exploit in most deployment scenarios.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- Weaknesses (CWE)
- CWE-126
- Affected products
- 7 configuration(s)
- Published / Modified
- 2026-06-30 / 2026-08-03
NVD description (verbatim)
A flaw was found in GLib. An off-by-one error can occur in the gvs_tuple_is_normal function in the glib/gvariant-serialiser.c file when doing an alignment padding check because the bounds check uses > instead of >=, causing an out-of-bounds read of only 1 byte. This issue can cause a minor information disclosure of 1 byte and a denial of service when the out-of-bounds read crosses a page boundary.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-58010 stems from an off-by-one error in the gvs_tuple_is_normal function within glib/gvariant-serialiser.c. The alignment padding validation uses a greater-than (>) comparison instead of greater-than-or-equal-to (>=) in its bounds check, permitting a single-byte out-of-bounds read. When this read straddles a page boundary, the kernel may raise a segmentation fault, resulting in denial of service. In other cases, the single byte read may disclose adjacent heap or stack data. The vulnerability is classified under CWE-126 (Buffer Over-read).
Business impact
Organizations running GLib-dependent applications face dual exposure: confidentiality risk from single-byte information leaks and availability risk from denial-of-service crashes. While a one-byte disclosure is modest in isolation, repeated exploitation or timing side-channels could accumulate information. The denial-of-service vector is more immediately problematic for services that deserialize untrusted GVariant data, potentially enabling attackers to interrupt service availability. Patching is moderately urgent but not critical given the severity profile.
Affected systems
GLib is a low-level C utility library used across GNOME and many Linux systems. The vulnerability affects GNOME GLib directly and propagates to Red Hat Enterprise Linux versions that bundle affected GLib releases. Any application or library using GLib's GVariant serialization—particularly those processing untrusted serialized data—may be vulnerable. Check your environment's GLib version and review which upstream or vendor patches are available.
Exploitability
Exploitation requires crafting a malicious GVariant-serialized message and delivering it to an application that deserializes it without sufficient validation. The attack vector is network-accessible in services that accept GVariant input over the network or via inter-process communication. However, no public exploit code or active in-the-wild exploitation has been documented. The barrier to crafting a proof-of-concept is low for researchers with access to GLib source code, but the practical impact per exploitation attempt is limited to one byte of data or a process crash.
Remediation
Apply vendor-supplied patches for GLib and affected distributions as they become available. Verify the specific patched GLib version and distribution release notes from Red Hat and GNOME project advisories. As an interim measure, restrict network access to services that deserialize untrusted GVariant data, and monitor application logs for segmentation faults or crashes that may indicate exploitation attempts. Application-level input validation should complement GLib updates.
Patch guidance
Check Red Hat Enterprise Linux security advisories and GNOME GLib release notes for patched versions addressing this off-by-one error. Apply patches through your standard patch management process, prioritizing systems that expose GVariant deserialization to untrusted input. Test patches in a staging environment before production deployment to ensure compatibility with your GLib-dependent applications. Verify the patch addresses the bounds check modification in gvariant-serialiser.c.
Detection guidance
Monitor system logs and application error streams for segmentation faults or crashes originating from glib or gvariant-related functions, which may indicate exploitation attempts targeting the page-boundary condition. Network-level detection is limited because the attack is payload-based; focus on anomalous deserialization errors or unexpected process terminations in GLib-using services. Endpoint detection and response (EDR) tools should flag repeated crashes in the same process or coordinated crashes across multiple instances.
Why prioritize this
CVE-2026-58010 merits prompt but not emergency patching. The CVSS score of 6.5 (MEDIUM) reflects the dual impact of information disclosure and denial of service, but the one-byte leak is confined and exploitability requires crafted input. Prioritize systems that process untrusted GVariant data from network sources or user-controlled interfaces. Organizations with strict availability requirements should treat the DoS vector as higher priority than those where occasional crashes are tolerable.
Risk score, explained
The CVSS 3.1 score of 6.5 (MEDIUM) is assigned because: (1) network accessibility (AV:N) and no privilege requirement (PR:N) lower the barrier to attack; (2) the information disclosure (C:L) is minimal at one byte but present; (3) the denial of service impact (A:L) is real but not total system compromise; (4) no integrity impact is possible (I:N). The score appropriately reflects a moderate security concern that should not be ignored but is not an emergency in most environments.
Frequently asked questions
How likely is it that attackers will exploit this vulnerability?
Exploitation requires crafting a specific malicious GVariant message and delivering it to an application that deserializes it. While the technical bar is moderate for skilled attackers, the practical payoff (one byte of data or a process crash) may limit opportunistic exploitation. However, targeted attacks against high-availability services are conceivable. No active in-the-wild exploitation has been documented to date.
Which applications are most at risk?
Any application that deserializes untrusted GVariant data is at risk, particularly services using GNOME libraries, D-Bus, or custom IPC mechanisms that rely on GLib serialization. Database query tools, configuration daemons, and network services that accept structured binary input should be prioritized for patching.
Can this vulnerability be exploited remotely without authentication?
Yes. The CVSS vector indicates no privilege requirement (PR:N) and network accessibility (AV:N). An unauthenticated attacker can exploit this if they can send a malicious GVariant payload to a vulnerable service over the network.
What is the difference between the information disclosure and denial-of-service impacts?
The information disclosure occurs when the single out-of-bounds byte happens to contain sensitive data from adjacent memory; this is unpredictable and low-volume. Denial of service occurs specifically when the read crosses a memory page boundary, triggering a segmentation fault and crashing the process. Page-boundary crossings are relatively rare but detectable through fuzzing or careful payload crafting.
This analysis is provided for informational purposes and reflects publicly disclosed information as of the publication and modification dates. SEC.co does not provide exploits, weaponized proof-of-concepts, or detailed attack vectors. Patch availability, version numbers, and timeline specifics should be verified against official vendor security advisories and changelogs. Organizations should conduct their own risk assessments based on their specific environments, GLib versions in use, and exposure to untrusted GVariant input. No warranty is provided regarding the completeness or accuracy of this analysis relative to future vendor updates or threat intelligence. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-58012MEDIUMGLib Buffer Over-read in g_regex_replace – MEDIUM Severity
- CVE-2026-58013MEDIUMGLib Buffer Over-read in Line Terminator Parsing
- CVE-2026-11787MEDIUM389 Directory Server Buffer Over-read in LDAP Filter Parsing
- CVE-2026-12549MEDIUMGNOME libsoup Range Request Regression Leading to DoS and Log Flooding
- CVE-2026-1764MEDIUMGNOME localsearch MP3 Parser Heap Buffer Over-Read Vulnerability
- CVE-2026-1766MEDIUMGNOME Localsearch MP3 Heap Buffer Overflow & Memory Leak
- CVE-2026-1767MEDIUMGNOME Localsearch MP3 Parser Heap Overflow – Patching Guide
- CVE-2026-58011MEDIUMGLib Out-of-Bounds Read in Date-Time Handling (CVSS 6.5)