Bug 2494870 - CVE-2026-58011 glib: out-of-bounds read in glib/gdatetime.c:g_date_time_get_ymd via invalid GDateTime [fedora-all]
Summary: CVE-2026-58011 glib: out-of-bounds read in glib/gdatetime.c:g_date_time_get_y...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["d5dbd9e2-ac4b-4c60-89d5-2...
Depends On:
Blocks: CVE-2026-58011
TreeView+ depends on / blocked
 
Reported: 2026-06-30 12:57 UTC by Guilherme de Almeida Suckevicz
Modified: 2026-06-30 14:25 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-30 14:25:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2026-06-30 12:57:49 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A global-buffer-overflow (out-of-bounds read) exists in GLib's g_date_time_get_ymd() function, triggered when operating on an invalid GDateTime object produced by g_date_time_add_full(). The g_date_time_add_full() function does not validate that the resulting date falls within the supported range (years 1–9999), allowing construction of a GDateTime with a negative or zero days field. When any getter function (e.g., g_date_time_get_month(), g_date_time_get_year()) is subsequently called, the internal g_date_time_get_ymd() routine computes a negative array index, causing a 2-byte OOB read from adjacent global data.

Comment 1 Paul Howarth 2026-06-30 14:25:56 UTC
This is a glib2 issue, not a glib issue. There are no g_date_time* functions or macros in glib version 1.


Note You need to log in before you can comment on or make changes to this bug.