Kernel Kit / Infix / v26.10.0latest
CVE-2025-13601
7.7highlibglib2-bootstraplibglib22.82.5in 3 of 4 releases
Reach libglib2-bootstrap · 6 builds in 3 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
A heap-based buffer overflow problem was found in glib through an incorrect calculation of buffer size in the g_escape_uri_string() function. If the string to escape contains a very large number of unacceptable characters (which would need escaping), the calculation of the length of the escaped string could overflow, leading to a potential write off the end of the newly allocated string.
Published 2025-11-26NVD
CVSS 3.1Local · no privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- High
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
References 33
- access.redhat.com/errata/RHSA-2026:0936
- access.redhat.com/errata/RHSA-2026:0975
- access.redhat.com/errata/RHSA-2026:0991
- access.redhat.com/errata/RHSA-2026:1323
- access.redhat.com/errata/RHSA-2026:1324
- access.redhat.com/errata/RHSA-2026:1326
- access.redhat.com/errata/RHSA-2026:1327
- access.redhat.com/errata/RHSA-2026:1465
Fable 5.1 · high confidence · 2026-11-05
The vulnerable g_escape_uri_string() (gint counter, unchecked g_malloc size arithmetic) is present unfixed in the libglib2-bootstrap 2.82.5 sources and none of the applied Buildroot patches touch glib/gconvert.c, so the code is compiled.
However libglib2-bootstrap is purely a build-time bootstrap for gobject-introspection: the .mk sets LIBGLIB2_BOOTSTRAP_INSTALL_TARGET = NO, the build dir has only a staging-install stamp, and packages-file-list.txt attributes zero target files to it; the libglib-2.0.so shipped in the image comes from the separate libglib2 package. Nothing from this package exists on the device, so the finding is not applicable to the product image for this SBOM entry.
Note the same unfixed code exists in the target libglib2 2.82.5 package, which must be triaged as its own SBOM entry.
Evidence 8
`gint unacceptable` counter and `g_malloc (p - string + unacceptable * 2 + 1)` with no overflow check — the pre-fix code described by the CVE is present
output/build/libglib2-bootstrap-2.82.5/glib/gconvert.c:1350-1368
No patches applied to the bootstrap build; the five libglib2 patches in the tree touch gstring/gfileutils/gvariant-parser, none touch gconvert.c
output/build/libglib2-bootstrap-2.82.5/.applied_patches_list (empty) and buildroot/package/libglib2/000[1-5]-*.patch
Package installs to staging only, never to the target rootfs; header 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 / LIBGLIB2_BOOTSTRAP_INSTALL_STAGING = YES
Target-variant build was installed to staging only
output/build/libglib2-bootstrap-2.82.5/.stamp_staging_installed (no .stamp_target_installed)
No target file is owned by libglib2-bootstrap; the GLib library in the image is from the `libglib2` package
output/build/packages-file-list.txt (0 lines matching ^libglib2-bootstrap,) vs line 21307 `libglib2,./usr/lib/libglib-2.0.so.0.8200.5`
libglib2-bootstrap only contributes files to staging (e.g. aclocal m4 files)
output/build/packages-file-list-staging.txt:18881-18883
libglib2-bootstrap / host-libglib2-bootstrap are selected solely as dependencies of gobject-introspection (BR2_PACKAGE_GOBJECT_INTROSPECTION=y at output/.config:2874, pulled in via libglib2.mk:84)
buildroot/package/gobject-introspection/Config.in:35 and gobject-introspection.mk:25,32
The separately-tracked target `libglib2` 2.82.5 package has the same unfixed `gint unacceptable` code — needs its own triage
output/build/libglib2-2.82.5/glib/gconvert.c:1350
Version and patches
NVD/upstream: affects GLib before 2.86.1 (fix in glib/gconvert.c g_escape_uri_string, widening the counter and checking the allocation size); 2.82.5 is within the affected range and this tree contains the unfixed code. Applied patches for libglib2-bootstrap: none (.applied_patches_list empty); the five Buildroot libglib2 patches do not touch gconvert.c. CPE match gnome:glib:2.82.5 is correct for the source, but the package is host/staging-only.
Recommendation
Document as N/A for the libglib2-bootstrap SBOM entry (build-time bootstrap, no files installed to the image). Triage CVE-2025-13601 against the target libglib2 2.82.5 package instead, which ships the same unfixed gconvert.c; for that entry, backport the upstream gconvert.c fix or upgrade GLib to >= 2.86.1.
Open questions
Exact upstream stable branches carrying the backport (2.84.x) could not be verified offline; irrelevant here since the tree's 2.82.5 code is demonstrably unfixed. Reachability of g_escape_uri_string (g_filename_to_uri callers) in the shipped image belongs to the libglib2 SBOM entry review.
Members of Kernel Kit decide. Sign in if you are one.