CVEfocus › CVE database › CVE-2021-27219

CVE-2021-27219

EPSS 3.1% (higher than 88% of CVEs)Published 2021-02-15Updated 2026-10-14Assigner: mitre

An issue was discovered in GNOME GLib before 2.66.6 and 2.67.x before 2.67.3. The function g_bytes_new has an integer overflow on 64-bit platforms due to an implicit cast from 64 bits to 32 bits. The overflow could potentially lead to memory corruption.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

44Fixed
1Fix pending
11Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04glib2.0Not affected
vulnerable_code_not_present
Ubuntu 25.10glib2.0Not affected
vulnerable_code_not_present
Ubuntu 24.04glib2.0Not affected
vulnerable_code_not_present
Ubuntu 22.04glib2.0Not affected
vulnerable_code_not_present
Ubuntu 20.04glib2.0Fixed2.64.6-1~ubuntu20.04.2UBUNTU-CVE-2021-27219
Ubuntu 18.04glib2.0Fixed2.56.4-0ubuntu0.18.04.7UBUNTU-CVE-2021-27219
Ubuntu 16.04glib2.0Fixed2.48.2-0ubuntu4.7UBUNTU-CVE-2021-27219
Ubuntu 14.04glib2.0Fix pendingUBUNTU-CVE-2021-27219
Debian 14glib2.0Fixed2.66.6-1DEBIAN-CVE-2021-27219
Debian 13glib2.0Fixed2.66.6-1DEBIAN-CVE-2021-27219
Debian 12glib2.0Fixed2.66.6-1DEBIAN-CVE-2021-27219
Red Hat Enterprise Linux 9glib2Not affected
Red Hat Enterprise Linux 9glib2-develNot affected
Red Hat Enterprise Linux 9glib2-docNot affected
Red Hat Enterprise Linux 9glib2-staticNot affected
Red Hat Enterprise Linux 9glib2-testsNot affected
Red Hat Enterprise Linux 8glib2Fixed0:2.56.4-10.el8_4RHSA-2021:2170
Red Hat Enterprise Linux 8glib2-develFixed0:2.56.4-10.el8_4RHSA-2021:2170
Red Hat Enterprise Linux 8glib2-docFixed0:2.56.4-10.el8_4RHSA-2021:2170
Red Hat Enterprise Linux 8glib2-famFixed0:2.56.4-10.el8_4RHSA-2021:2170
Red Hat Enterprise Linux 8glib2-staticFixed0:2.56.4-10.el8_4RHSA-2021:2170
Red Hat Enterprise Linux 8glib2-testsFixed0:2.56.4-10.el8_4RHSA-2021:2170
Red Hat Enterprise Linux 8mingw-glib2Fixed0:2.66.7-2.el8RHSA-2021:4526
Red Hat Enterprise Linux 8mingw32-glib2Fixed0:2.66.7-2.el8RHSA-2021:4526
Red Hat Enterprise Linux 8mingw32-glib2-staticFixed0:2.66.7-2.el8RHSA-2021:4526
Red Hat Enterprise Linux 8mingw64-glib2Fixed0:2.66.7-2.el8RHSA-2021:4526
Red Hat Enterprise Linux 8mingw64-glib2-staticFixed0:2.66.7-2.el8RHSA-2021:4526
Red Hat Enterprise Linux 7glib2Fixed0:2.56.1-9.el7_9RHSA-2021:2147
Red Hat Enterprise Linux 7glib2-develFixed0:2.56.1-9.el7_9RHSA-2021:2147
Red Hat Enterprise Linux 7glib2-docFixed0:2.56.1-9.el7_9RHSA-2021:2147
Red Hat Enterprise Linux 7glib2-famFixed0:2.56.1-9.el7_9RHSA-2021:2147
Red Hat Enterprise Linux 7glib2-staticFixed0:2.56.1-9.el7_9RHSA-2021:2147
Red Hat Enterprise Linux 7glib2-testsFixed0:2.56.1-9.el7_9RHSA-2021:2147
Red Hat Enterprise Linux 7redhat-virtualization-hostFixed0:4.3.16-20210615.0.el7_9RHSA-2021:2519
Red Hat Enterprise Linux 7redhat-virtualization-host-image-updateFixed0:4.3.16-20210615.0.el7_9RHSA-2021:2519
Red Hat Enterprise Linux 6firefoxNot affected
Red Hat Enterprise Linux 6thunderbirdNot affected
AlmaLinux 8glib2-docFixed2.56.4-10.el8_4ALSA-2021:2170
AlmaLinux 8glib2-staticFixed2.56.4-10.el8_4ALSA-2021:2170
AlmaLinux 8mingw32-glib2Fixed2.66.7-2.el8ALSA-2021:4526
AlmaLinux 8mingw32-glib2-staticFixed2.66.7-2.el8ALSA-2021:4526
AlmaLinux 8mingw64-glib2Fixed2.66.7-2.el8ALSA-2021:4526
AlmaLinux 8mingw64-glib2-staticFixed2.66.7-2.el8ALSA-2021:4526
Rocky Linux 8glib2Fixed0:2.56.4-10.el8_4RLSA-2021:2170
Alpine Linux 3.24glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.23glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.22glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.21glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.20glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.19glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.18glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.17glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.16glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.15glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.14glibFixed2.66.6-r0ALPINE-CVE-2021-27219
Alpine Linux 3.13glibFixed2.66.6-r0ALPINE-CVE-2021-27219

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.