bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-58011

7.5high

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. 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
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 glib 2.82.5 source used by libglib2-bootstrap contains the unfixed code: g_date_time_add_full() stores a computed day count without range validation (the "/* XXX validate */" stub at gdatetime.c:2082), unlike the other constructors which reject days outside 1..3652059, and g_date_time_get_ymd() then indexes the guint16 days_in_year/days_in_months tables from it. No applied patch or NEWS entry addresses this.

However, libglib2-bootstrap is a build-only intermediate (INSTALL_TARGET = NO, staging only) that exists purely to bootstrap gobject-introspection; zero files from it are installed to the target image, so this SBOM entry contributes no code to a shipped device.

The identical vulnerable code is shipped via the separate target package libglib2 2.82.5, which must be assessed under its own SBOM entry.

Evidence 8
  1. g_date_time_add_full() assigns new->days / new->usec and returns after a bare '/* XXX validate */' comment with no range check - the vulnerable, unfixed code.

    output/build/libglib2-bootstrap-2.82.5/glib/gdatetime.c:2077-2084

  2. Other constructors validate 'datetime->days < 1 || datetime->days > 3652059'; this check is absent from g_date_time_add_full, confirming the fix is not backported.

    output/build/libglib2-bootstrap-2.82.5/glib/gdatetime.c:782,818

  3. g_date_time_get_ymd indexes guint16 tables days_in_year/days_in_months using a month derived from the unvalidated days value (the 2-byte OOB read).

    output/build/libglib2-bootstrap-2.82.5/glib/gdatetime.c:2257-2263

  4. Empty - no patches applied to this package; the five patches in buildroot/package/libglib2/ are gstring/gfileutils/gvariant fixes only.

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

  5. Package is installed 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, INSTALL_STAGING = YES)

  6. The only selector of BR2_PACKAGE_LIBGLIB2_BOOTSTRAP; it is pulled in as a build dependency of gobject-introspection (BR2_PACKAGE_GOBJECT_INTROSPECTION=y at output/.config:2874).

    buildroot/package/gobject-introspection/Config.in:35

  7. 0 entries for libglib2-bootstrap (481 in packages-file-list-staging.txt); the target's glib files are attributed to the separate 'libglib2' package.

    output/build/packages-file-list.txt

  8. BR2_PACKAGE_LIBGLIB2=y and BR2_PACKAGE_LIBGLIB2_BOOTSTRAP=y - the runtime glib on the device is the main libglib2 2.82.5 package, not the bootstrap one.

    output/.config:2919-2920

Version and patches

glib 2.82.5 is within the affected range: the source lacks any validation of new->days in g_date_time_add_full (upstream fix adds this check; not present here, no stable backport in 2.82.5 NEWS). Patches applied by this build: none (.applied_patches_list empty). The upstream fix commit could not be fetched (no network access), so the fixed version was inferred from the absence of validation code rather than from the advisory text.

Recommendation

Document as N/A for the libglib2-bootstrap SBOM entry (build-time intermediate, not shipped). Do NOT close the CVE for the product: the same unfixed gdatetime.c is shipped in target package libglib2 2.82.5 (used by dbus-glib, json-glib and anything linking libglib-2.0), so CVE-2026-58011 should be triaged against that entry, with an upgrade to a fixed glib (2.82.x stable backport or newer) or a backport of the days-range check in g_date_time_add_full.

Open questions

The exact upstream fix commit and fixed version numbers could not be confirmed offline; the affected determination rests on inspecting the code for the missing validation. Reachability of g_date_time_add_full from network-facing consumers of the target libglib2 package (dbus-glib, json-glib, etc.) was not assessed here, since it is out of scope for the bootstrap entry.

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