Kernel Kit / Infix / v26.10.0latest
CVE-2026-58011
7.5highlibglib2-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 flaw was found in GLib. An out-of-bounds read of only 2 bytes can occur in the g_date_time_get_ymd function in the glib/gdatetime.c file when an invalid GDateTime object produced by the g_date_time_add_full function is processed. This flaw can corrupt the date output and potentially cause logic errors that may lead to a denial of service.
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
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References 80
- access.redhat.com/errata/RHSA-2026:49512
- access.redhat.com/errata/RHSA-2026:55440
- access.redhat.com/errata/RHSA-2026:57015
- access.redhat.com/errata/RHSA-2026:58981
- access.redhat.com/errata/RHSA-2026:61766
- access.redhat.com/errata/RHSA-2026:61783
- access.redhat.com/errata/RHSA-2026:63135
- access.redhat.com/errata/RHSA-2026:63138
Fable 5.1 · high confidence · 2026-11-05
The vulnerable code is present: glib-2.82.5's g_date_time_add_full() computes new->days without range validation (the "/* XXX validate */" comment at gdatetime.c:2082 is exactly where the upstream fix adds the check), and none of the 5 Buildroot patches touch gdatetime.c.
libglib2 is a target package (BR2_PACKAGE_LIBGLIB2=y, .stamp_target_installed) pulled in by rauc, dbus-glib, conmon, irqbalance, python-gobject etc., and gdatetime.c is compiled unconditionally.
However, no package in the build calls g_date_time_add_full/years/months/weeks/days (the only variants that reach the unvalidated path); the sole GDateTime arithmetic user (gio/gfileinfo.c uses g_date_time_add) goes through the validating g_date_time_from_instant(), and rauc/firewalld/Infix code only use new_now/new_from_unix/format.
Reaching it would require a root shell running custom code (e.g. python3 with the on-target gi bindings), not a network interface or any management-plane action.
Evidence 12
Result constructed from full_time at lines 2077-2080 with no range check on new->days; comment '/* XXX validate */' at 2082 — fix absent
output/build/libglib2-2.82.5/glib/gdatetime.c:2006-2085 (g_date_time_add_full)
Only 5 patches (gstring, gfileutils, 3x gvariant-parser); none touch gdatetime.c
output/build/libglib2-2.82.5/.applied_patches_list
BR2_PACKAGE_LIBGLIB2=y and BR2_PACKAGE_LIBGLIB2_BOOTSTRAP=y — target package, not host-only
output/.config:2919-2920
libglib2 installed into target rootfs (target .so files are stripped from this cached artifact tree)
output/build/libglib2-2.82.5/.stamp_target_installed
Enabled packages that select BR2_PACKAGE_LIBGLIB2; defconfig line 40 sets BR2_PACKAGE_DBUS_GLIB=y explicitly
buildroot/package/{rauc,dbus-glib,conmon,irqbalance,python-gobject,json-glib,gvfs,dbus-python}/Config.in + output/.config
gdatetime.c is compiled unconditionally; no meson option disables it (libglib2.mk LIBGLIB2_CONF_OPTS has no related switch)
output/build/libglib2-2.82.5/glib/meson.build:283
Timespan variant uses g_date_time_from_instant(), which validates; does not reach the vulnerable add_full path
output/build/libglib2-2.82.5/glib/gdatetime.c:1784-1791 (g_date_time_add)
Only hits are GIR documentation stubs in gobject-introspection/gir/glib-2.0.c; no built consumer calls add_full/years/months/weeks/days
grep 'g_date_time_add' over output/build (non-test, non-glib)
rauc (default-enabled via finit.d/enabled/rauc.conf) only uses g_date_time_new_now_utc/new_from_unix_utc/format — no date arithmetic
output/build/rauc-1.13/src/{event_log.c,mark.c,nbd.c}
Default services: rauc, dbus, netconf, mstpd, confd etc.; firewalld only in available/ and its python code has no GLib.DateTime use
board/common/rootfs/etc/finit.d/enabled/ and output/target/etc/finit.d/enabled/
No Infix-authored code uses the GDateTime API
src/ and package/ (grep g_date_time|GLib.DateTime)
python-gobject bindings present on target: the function is callable, but only by someone running arbitrary code from a root shell
output/target/usr/lib/python3.12/site-packages/gi
Version and patches
NVD range covers glib 2.82.5; upstream fix (validation of g_date_time_add_full result) is not in this source and no applied Buildroot patch backports it — the tree is unfixed. Fixed upstream in later 2.84/2.86 stable releases (exact version not verifiable offline).
Recommendation
Document as not applicable for the shipped configuration (no reachable caller of g_date_time_add_full/years/months/weeks/days; not network-reachable). Pick up the upstream gdatetime fix opportunistically at the next libglib2 bump; no urgent backport required.
Open questions
Upstream fix commit and exact fixed version could not be fetched (no network); conclusion that the fix is absent is based on the unvalidated construction at gdatetime.c:2077-2082. The cached artifact's output/target lacks .so files, so target installation is inferred from .stamp_target_installed and .config rather than the file itself.
Members of Kernel Kit decide. Sign in if you are one.