MGASA-2021-0123
Updated glib2.0 packages fix security vulnerabilities
-
Fix various instances within GLib where
g_memdup()was vulnerable to a silent integer truncation and heap overflow problem (discovered by Kevin Backhouse, work by Philip Withnall) (#2319) -
Fix some issues with handling over-long (invalid) input when parsing for
GDate(!1824) -
Don't load GIO modules or parse other GIO environment variables when
AT_SECUREis set (i.e. in a setuid/setgid/setcap process). GIO has always been documented as not being safe to use in privileged processes, but people persist in using it unsafely, so these changes should harden things against potential attacks at least a little. Unfortunately they break a couple of projects which were relying on readingDBUS_SESSION_BUS_ADDRESS, so GIO continues to read that for setgid/setcap (but not setuid) processes. This loophole will be closed in GLib 2.70 (see issue #2316), which should give modules 6 months to change their behaviour. (Work by Simon McVittie and Philip Withnall) (#2168, #2305) -
Fix
g_spawn()searchingPATHwhen it wasn't meant to (work by Simon McVittie and Thomas Haller) (!1913)
Also, this update provides 2.66.7 version that fixes several issues:
-
Fix various regressions caused by rushed security fixes in 2.66.6 (work by Simon McVittie and Jan Alexander Steffens) (!1933, !1943)
-
Fix a silent integer truncation when calling
g_byte_array_new_take()for byte arrays bigger thanG_MAXUINT(work by Krzesimir Nowak) (!1944) -
Disallow using currently-undefined D-Bus connection or server flags to prevent forward-compatibility problems with new security-sensitive flags likely to be released in GLib 2.68 (work by Simon McVittie) (!1945)
What each source reports
OSV No score
Updated glib2.0 packages fix security vulnerabilities
-
Fix various instances within GLib where
g_memdup()was vulnerable to a silent integer truncation and heap overflow problem (discovered by Kevin Backhouse, work by Philip Withnall) (#2319) -
Fix some issues with handling over-long (invalid) input when parsing for
GDate(!1824) -
Don't load GIO modules or parse other GIO environment variables when
AT_SECUREis set (i.e. in a setuid/setgid/setcap process). GIO has always been documented as not being safe to use in privileged processes, but people persist in using it unsafely, so these changes should harden things against potential attacks at least a little. Unfortunately they break a couple of projects which were relying on readingDBUS_SESSION_BUS_ADDRESS, so GIO continues to read that for setgid/setcap (but not setuid) processes. This loophole will be closed in GLib 2.70 (see issue #2316), which should give modules 6 months to change their behaviour. (Work by Simon McVittie and Philip Withnall) (#2168, #2305) -
Fix
g_spawn()searchingPATHwhen it wasn't meant to (work by Simon McVittie and Thomas Haller) (!1913)
Also, this update provides 2.66.7 version that fixes several issues:
-
Fix various regressions caused by rushed security fixes in 2.66.6 (work by Simon McVittie and Jan Alexander Steffens) (!1933, !1943)
-
Fix a silent integer truncation when calling
g_byte_array_new_take()for byte arrays bigger thanG_MAXUINT(work by Krzesimir Nowak) (!1944) -
Disallow using currently-undefined D-Bus connection or server flags to prevent forward-compatibility problems with new security-sensitive flags likely to be released in GLib 2.68 (work by Simon McVittie) (!1945)
- Record
MGASA-2021-0123- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
glib2.0Mageia:8 |
before 2.66.7-1.mga8 | 2.66.7-1.mga8 |
mingw-glib2Mageia:8 |
before 2.66.7-1.mga8 | 2.66.7-1.mga8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
MGASA-2021-0123 is a vulnerability with no CVSS score yet in glib2.0, published March 12, 2021. No source lists public exploit code. Fixed in glib2.0 2.66.7-1.mga8.