Skip to content
OpenAdvisories
Unscored CVE-2021-27218 EUVD-2021-13983GHSA-vvj7-w55j-xgmw

An issue was discovered in GNOME GLib before 2.66.7 and 2.67.x before 2.67.4. If g_byte_array_new_take() was called with a buffer of 4GB or…

Published Feb 15, 2021 · Updated Oct 14, 2026 · Assigned by mitre

Description

An issue was discovered in GNOME GLib before 2.66.7 and 2.67.x before 2.67.4. If g_byte_array_new_take() was called with a buffer of 4GB or more on a 64-bit platform, the length would be truncated modulo 2**32, causing unintended length truncation.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glib2.0 2.66.7-1 —
Debian 13 glib2.0 2.66.7-1 —
Debian 12 glib2.0 2.66.7-1 —
Debian 9 glib2.0 2.50.3-2+deb9u3 DLA-3044-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS glib2.0 2.64.6-1~ubuntu20.04.2 USN-4759-1
Ubuntu 18.04 LTS glib2.0 2.56.4-0ubuntu0.18.04.7 USN-4759-1
Ubuntu 16.04 LTS glib2.0 2.48.2-0ubuntu4.7 USN-4759-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS glib2.0 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 glib2 +5 2.56.4-10.el8_4.1 RHSA-2021:3058
RHEL 8 mingw-glib2 +4 2.66.7-2.el8 RHSA-2021:4526

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 glib2-doc +1 2.56.4-10.el8_4.1 ALSA-2021:3058
AlmaLinux 8 mingw32-glib2 +3 2.66.7-2.el8 ALSA-2021:4526

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 glib2 2.56.4-10.el8_4.1 RLSA-2021:3058
ReleasePackageFixed inAdvisory
SLES 15 SP2 glib2 2.62.6-3.6.1 SUSE-SU-2021:0778-1
SLES 15 SP1 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SLES 15 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SLES 12 SP5 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SLES 12 SP4 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
Show 21 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP3 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SLES 12 SP2 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SLES for SAP 15 SP1 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SLES for SAP 15 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SLES for SAP 12 SP5 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SLES for SAP 12 SP4 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SLES for SAP 12 SP3 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SLES for SAP 12 SP2 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SLE Micro 5.0 glib2 2.62.6-3.6.1 SUSE-SU-2021:0778-1
SLE HPC 15 SP1 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SLE HPC 15 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SUSE OpenStack Cloud Crowbar 9 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SUSE OpenStack Cloud Crowbar 8 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SUSE OpenStack Cloud 9 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SUSE OpenStack Cloud 8 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SUSE OpenStack Cloud 7 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SUSE Manager Server 4.0 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SUSE Manager Retail Branch Server 4.0 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SUSE Manager Proxy 4.0 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
SUSE HPE Helion OpenStack 8 glib2 2.48.2-12.22.1 SUSE-SU-2021:0801-1
SUSE Enterprise Storage 6 glib2 2.54.3-4.24.1 SUSE-SU-2021:0890-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.2 glib2 2.62.6-lp152.2.6.1 openSUSE-SU-2021:0406-1
ReleasePackageFixed inAdvisory
Alpine v3.13 glib 2.66.7-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 glib2 +5 2.56.1-9.amzn2.0.2 ALAS2-2021-1711

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) glib 2.60.1-5 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 glib2 +5 2.56.4-10.el8_4.1 ELSA-2021-3058

Advisories 15

References