Bug 2492247 (CVE-2026-58012) - CVE-2026-58012 glib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()
Summary: CVE-2026-58012 glib: buffer over-read in g_regex_replace() via glib/gregex.c:...
Keywords:
Status: NEW
Alias: CVE-2026-58012
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2494873 2494874 2494875
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 16:49 UTC by OSIDB Bzimport
Modified: 2026-10-06 07:37 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2026:57606 0 None None None 2026-08-20 16:35:11 UTC
Red Hat Product Errata RHBA-2026:58991 0 None None None 2026-08-24 12:47:54 UTC
Red Hat Product Errata RHBA-2026:61344 0 None None None 2026-08-31 09:10:07 UTC
Red Hat Product Errata RHBA-2026:61808 0 None None None 2026-09-01 00:25:56 UTC
Red Hat Product Errata RHBA-2026:62574 0 None None None 2026-09-02 10:22:18 UTC
Red Hat Product Errata RHSA-2026:49512 0 None None None 2026-08-03 01:47:14 UTC
Red Hat Product Errata RHSA-2026:55440 0 None None None 2026-08-17 05:48:51 UTC
Red Hat Product Errata RHSA-2026:57015 0 None None None 2026-08-19 16:42:09 UTC
Red Hat Product Errata RHSA-2026:61766 0 None None None 2026-08-31 19:29:24 UTC
Red Hat Product Errata RHSA-2026:65762 0 None None None 2026-09-09 02:26:57 UTC
Red Hat Product Errata RHSA-2026:65763 0 None None None 2026-09-09 03:09:49 UTC
Red Hat Product Errata RHSA-2026:65767 0 None None None 2026-09-09 02:59:45 UTC
Red Hat Product Errata RHSA-2026:65768 0 None None None 2026-09-09 03:27:23 UTC
Red Hat Product Errata RHSA-2026:65769 0 None None None 2026-09-09 03:04:25 UTC
Red Hat Product Errata RHSA-2026:65770 0 None None None 2026-09-09 03:28:31 UTC
Red Hat Product Errata RHSA-2026:65771 0 None None None 2026-09-09 02:59:29 UTC
Red Hat Product Errata RHSA-2026:65773 0 None None None 2026-09-09 03:14:58 UTC

Description OSIDB Bzimport 2026-06-24 16:49:19 UTC
A heap-buffer-overflow READ vulnerability exists in GLib's g_regex_replace() function when used with G_REGEX_RAW compile flag and case-change replacement escapes (\U, \L, \u, \l).
In G_REGEX_RAW mode, PCRE2 treats the subject string as raw bytes rather than UTF-8. Matched substrings can therefore contain arbitrary byte sequences that are not valid UTF-8. When the replacement string contains case-change escapes (e.g., \U\0 to uppercase the match), the internal string_append() function processes the matched substring using UTF-8 functions (g_utf8_get_char(), g_utf8_next_char()) which assume valid UTF-8 input. A multi-byte UTF-8 lead byte (e.g., 0xF4 indicating a 4-byte sequence) in the matched data causes these functions to read beyond the heap-allocated buffer.

Comment 3 errata-xmlrpc 2026-08-03 01:47:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:49512 https://access.redhat.com/errata/RHSA-2026:49512

Comment 4 errata-xmlrpc 2026-08-17 05:48:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:55440 https://access.redhat.com/errata/RHSA-2026:55440

Comment 5 errata-xmlrpc 2026-08-19 16:42:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:57015 https://access.redhat.com/errata/RHSA-2026:57015

Comment 6 errata-xmlrpc 2026-08-31 19:29:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:61766 https://access.redhat.com/errata/RHSA-2026:61766

Comment 7 errata-xmlrpc 2026-09-09 02:26:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:65762 https://access.redhat.com/errata/RHSA-2026:65762

Comment 8 errata-xmlrpc 2026-09-09 02:59:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:65771 https://access.redhat.com/errata/RHSA-2026:65771

Comment 9 errata-xmlrpc 2026-09-09 02:59:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:65767 https://access.redhat.com/errata/RHSA-2026:65767

Comment 10 errata-xmlrpc 2026-09-09 03:04:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:65769 https://access.redhat.com/errata/RHSA-2026:65769

Comment 11 errata-xmlrpc 2026-09-09 03:09:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:65763 https://access.redhat.com/errata/RHSA-2026:65763

Comment 12 errata-xmlrpc 2026-09-09 03:14:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:65773 https://access.redhat.com/errata/RHSA-2026:65773

Comment 13 errata-xmlrpc 2026-09-09 03:27:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:65768 https://access.redhat.com/errata/RHSA-2026:65768

Comment 14 errata-xmlrpc 2026-09-09 03:28:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:65770 https://access.redhat.com/errata/RHSA-2026:65770


Note You need to log in before you can comment on or make changes to this bug.