Kernel Kit / Infix / v26.10.0latest
CVE-2025-13601
7.7highlibglib2-bootstraplibglib22.82.5in 4 of 4 releases
Reach libglib2 · 8 builds in 4 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() is present unmodified in this build (gint counter, unacceptable * 2 size arithmetic in output/build/libglib2-2.82.5/glib/gconvert.c:1350,1368) and none of the five Buildroot patches touch gconvert.c, so the build is affected.
libglib-2.0.so is installed on the target (BR2_PACKAGE_LIBGLIB2=y; packages-file-list.txt) and rauc runs by default under finit, but the only callers of the function are g_filename_to_uri() and GIO's internal g_local_file_get_uri()/glocalfileinfo.c; no Infix component, default service (rauc, netconf, mstpd) or YANG/CLI path calls either, and triggering the overflow requires a caller to pass a >1 GiB string of escapable characters. Reaching it would require a root shell running custom code (e.g. python-gobject GLib.filename_to_uri or gvfs, neither started by default) with attacker-chosen gigabyte-sized input; there is no network-facing path.
Evidence 9
`gint unacceptable;` - the 32-bit counter the upstream fix changes to gsize is still present (vulnerable code)
output/build/libglib2-2.82.5/glib/gconvert.c:1350
`g_malloc (p - string + unacceptable * 2 + 1)` - unfixed overflowing size calculation
output/build/libglib2-2.82.5/glib/gconvert.c:1368
Only gstring, gfileutils and gvariant-parser patches applied; none touch gconvert.c / CVE-2025-13601
output/build/libglib2-2.82.5/.applied_patches_list
BR2_PACKAGE_LIBGLIB2=y - target package selected
output/.config:2919
libglib-2.0 and libgio-2.0 shipped in the target rootfs; gconvert.c is core glib, always compiled
output/build/packages-file-list.txt (libglib2,./usr/lib/libglib-2.0.so.0.8200.5)
Only callers of g_escape_uri_string are g_filename_to_uri() and GIO's local-file URI helpers; no other target package (rauc, avahi, json-glib, lldpd) calls g_filename_to_uri/g_file_get_uri
output/build/libglib2-2.82.5/glib/gconvert.c:1418,1421 and gio/glocalfile.c, gio/glocalfileinfo.c
Default services; rauc is the only glib-based one and its sources (output/build/rauc-1.13/src) contain no get_uri/filename_to_uri calls
board/common/rootfs/etc/finit.d/enabled/ (mstpd.conf, netconf.conf, rauc.conf)
gvfs daemons and python-gobject are on the image but not started by any finit service; they would only be reachable from a root shell
output/build/packages-file-list.txt (gvfs, python-gobject)
No product code or YANG/CLI path invokes filename-to-URI conversion (rg for filename_to_uri/get_uri returns nothing)
src/confd/yang, board/common/rootfs
Version and patches
NVD/Red Hat: all glib releases before the fix (gconvert: use gsize for the escaped-length calculation in g_escape_uri_string(), shipped in glib 2.86.2 and backported to supported stable branches) are affected; 2.82.5 falls in range and the fix hunk is absent from output/build/libglib2-2.82.5/glib/gconvert.c. Buildroot patches 0001-0005 address other issues (gstring, gfileutils, gvariant-parser) and do not cover this CVE.
Recommendation
Document as not exposed; pick up the upstream gconvert.c fix (single small hunk) with the next libglib2 bump or routine Buildroot update rather than as an urgent backport. No network or management-interface path reaches g_escape_uri_string on a shipped device.
Open questions
Exact fixed stable version numbers were taken from memory of the upstream advisory, not from the tree; confirm against the GNOME commit when scheduling the bump. Whether netopeer2/sysrepo (default netconf service) link libglib was not exhaustively checked, but no filename_to_uri caller exists in the tree outside GIO itself.
Members of Kernel Kit decide. Sign in if you are one.