Skip to content
VulniPulse
Medium6.5Red Hat Linux

Medium [CVE-2026-58012] Glib: buffer over-read in g_regex_replace via glib/gregex.c:string_append and g_utf8_next_char

This medium-severity Red Hat Linux advisory covers CVE-2026-58012 affecting Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6.

CVE-2026-58012 Published Jun 30, 2026Updated by vendor Aug 3, 2026
Affected products & platforms
Red Hat LinuxRed Hat Enterprise Linux
Open vendor advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

A flaw was found in GLib. A buffer over-read can occur in the g_regex_replace function when used with the `G_REGEX_RAW` compile flag and case-change replacement escapes because the string_append function processes matched substrings using UTF-8 functions that assume valid UTF-8 input, even when the string is treated as raw bytes.

This vulnerability can cause a minor information disclosure of 1-5 bytes and a denial of service when the buffer over-read crosses a page boundary.

Affected products named by the advisory: Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; and 1 more.

Affected products named by the advisory: Red Hat Enterprise Linux 9.

Affected versions
  • GLib before 2.86.5
  • GLib before 2.88.1

Official advisory · high-confidence parse· fetched 2 hours ago·verify at source

Fixed versions
  • 2.86.5
  • 2.88.1

Official advisory · high-confidence parse· fetched 2 hours ago·verify at source

Mitigation

Upgrade to a fixed release: 2.86.5, 2.88.1. That is the remediation for this advisory.

The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.

Official advisory · high-confidence parse· fetched 2 hours ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.