bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-58012

8.2high

libglib2-bootstraplibglib22.82.5in 3 of 4 releases

Reach libglib2-bootstrap · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.02.82.5
v26.09.02.82.5
v26.10.0latest2.82.5
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalOpenx86_64Openaarch64_minimalANot built · autox86_64ANot built · autoaarch64_minimalANot built · autox86_64ANot built

Description · NVD

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.

Published 2026-06-30NVD

CVSS 3.1Network · no privileges · no user interaction

How it is reached

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None

What it costs

Confidentiality
Low
Integrity
None
Availability
High
Scope
Unchanged

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

References 79
Review Av26.10.0x86_64Not built✓ accepted by a member, 2026-11-17 · settles 4 of 6

Fable 5.1 · high confidence · 2026-11-05

The libglib2-bootstrap 2.82.5 source in this tree is unpatched for CVE-2026-58012: no patches are applied and glib/gregex.c string_append() (lines 3156-3185) walks matched text with g_utf8_get_char()/g_utf8_next_char() with no G_REGEX_RAW handling.

However, libglib2-bootstrap is a build-only intermediate (LIBGLIB2_BOOTSTRAP_INSTALL_TARGET = NO) pulled in solely by gobject-introspection (itself selected by firewalld -> python-gobject); it installs only to staging/host, its build dir has no .stamp_target_installed, and packages-file-list.txt has zero libglib2-bootstrap entries, so none of its code is in the product image.

The libglib-2.0.so.0.8200.5 actually shipped comes from the main libglib2 package, whose gregex.c is byte-identical and equally unpatched; the CVE must be tracked against that package instead.

Evidence 8
  1. Empty: no patches applied to the bootstrap build, so no backport of the CVE fix.

    output/build/libglib2-bootstrap-2.82.5/.applied_patches_list

  2. Vulnerable code present: g_utf8_get_char()/g_utf8_next_char() used on matched substrings for case-change escapes with no check of G_REGEX_RAW (compile_opts); matches the CVE description.

    output/build/libglib2-bootstrap-2.82.5/glib/gregex.c:3156-3185 (string_append)

  3. Package is explicitly not installed to target; comment states it is an implementation detail only gobject-introspection should depend on.

    buildroot/package/libglib2/libglib2-bootstrap/libglib2-bootstrap.mk (LIBGLIB2_BOOTSTRAP_INSTALL_TARGET = NO, header comment)

  4. BR2_PACKAGE_GOBJECT_INTROSPECTION selects BR2_PACKAGE_LIBGLIB2_BOOTSTRAP; host-libglib2-bootstrap is a host dependency of gobject-introspection. This is the only consumer.

    buildroot/package/gobject-introspection/Config.in:35 and gobject-introspection.mk:32

  5. BR2_PACKAGE_LIBGLIB2=y, BR2_PACKAGE_LIBGLIB2_BOOTSTRAP=y, BR2_PACKAGE_GOBJECT_INTROSPECTION=y, BR2_PACKAGE_FIREWALLD=y, BR2_PACKAGE_PYTHON_GOBJECT=y: the bootstrap package is pulled in transitively via firewalld/python-gobject -> gobject-introspection; not named in configs/x86_64_defconfig.

    output/.config:2919-2920, 2874, 3208, 1681

  6. Has .stamp_staging_installed but no .stamp_target_installed, whereas output/build/libglib2-2.82.5/ has .stamp_target_installed.

    output/build/libglib2-bootstrap-2.82.5/ (stamps)

  7. Zero target-image files attributed to libglib2-bootstrap; its libglib-2.0.so.0.8200.5 appears only in the staging list. Target ./usr/lib/libglib-2.0.so.0.8200.5 (line 21307) is attributed to package libglib2.

    output/build/packages-file-list.txt (target) vs packages-file-list-staging.txt:19260

  8. Identical: the shipped libglib2 2.82.5 carries the same unpatched string_append(); libglib2 patches 0001-0005 cover CVE-2025-6052/7039/14087 only, not this CVE.

    diff output/build/libglib2-bootstrap-2.82.5/glib/gregex.c output/build/libglib2-2.82.5/glib/gregex.c

Version and patches

NVD maps the CVE to gnome:glib 2.82.5, which matches this source (glib-2.82.5.tar.xz). No upstream fix is present in the tree: .applied_patches_list is empty for the bootstrap build, the main libglib2 build applies only 0001-0005 (CVE-2025-6052, CVE-2025-7039, CVE-2025-14087), and gregex.c string_append() has no G_REGEX_RAW branch. The exact fixed upstream version could not be read from the tree (no network); per the RHSA references it is fixed in 2026-era releases/backports.

Recommendation

Document CVE-2026-58012 as N/A for libglib2-bootstrap (build-only staging/host artifact, nothing installed in the image). Re-file the finding against the main libglib2 2.82.5 package, which ships the identical unpatched gregex.c in /usr/lib/libglib-2.0.so.0.8200.5, and assess reachability there (g_regex_replace with G_REGEX_RAW plus \\U/\\L/\\u/\\l replacement escapes on untrusted input by firewalld/python-gobject/other GLib consumers on the device); backport the upstream gregex.c fix or bump libglib2.

Open questions

The upstream fix commit and exact fixed version were not verifiable offline; the conclusion rests on the absence of any G_REGEX_RAW handling in string_append(). Reachability of the identical code in the main libglib2 package on a shipped device was not assessed here as it is out of scope for this SBOM entry.

Members of Kernel Kit decide. Sign in if you are one.