CVEfocus › CVE database › CVE-2021-27218

CVE-2021-27218

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

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.

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

25Fixed
1Fix pending
12Will not fix
14Not 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-27218
Ubuntu 18.04glib2.0Fixed2.56.4-0ubuntu0.18.04.7UBUNTU-CVE-2021-27218
Ubuntu 16.04glib2.0Fixed2.48.2-0ubuntu4.7UBUNTU-CVE-2021-27218
Ubuntu 14.04glib2.0Fix pendingUBUNTU-CVE-2021-27218
Debian 14glib2.0Fixed2.66.7-1DEBIAN-CVE-2021-27218
Debian 13glib2.0Fixed2.66.7-1DEBIAN-CVE-2021-27218
Debian 12glib2.0Fixed2.66.7-1DEBIAN-CVE-2021-27218
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 9mingw-glib2Not affected
Red Hat Enterprise Linux 9mingw32-glib2Not affected
Red Hat Enterprise Linux 9mingw32-glib2-staticNot affected
Red Hat Enterprise Linux 9mingw64-glib2Not affected
Red Hat Enterprise Linux 9mingw64-glib2-staticNot affected
Red Hat Enterprise Linux 8glib2Fixed0:2.56.4-10.el8_4.1RHSA-2021:3058
Red Hat Enterprise Linux 8glib2-develFixed0:2.56.4-10.el8_4.1RHSA-2021:3058
Red Hat Enterprise Linux 8glib2-docFixed0:2.56.4-10.el8_4.1RHSA-2021:3058
Red Hat Enterprise Linux 8glib2-famFixed0:2.56.4-10.el8_4.1RHSA-2021:3058
Red Hat Enterprise Linux 8glib2-staticFixed0:2.56.4-10.el8_4.1RHSA-2021:3058
Red Hat Enterprise Linux 8glib2-testsFixed0:2.56.4-10.el8_4.1RHSA-2021:3058
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 7glib2Will not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-famWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6glib2Will not fix
Out of support scope
Red Hat Enterprise Linux 6glib2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6glib2-docWill not fix
Out of support scope
Red Hat Enterprise Linux 6glib2-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
AlmaLinux 8glib2-docFixed2.56.4-10.el8_4.1ALSA-2021:3058
AlmaLinux 8glib2-staticFixed2.56.4-10.el8_4.1ALSA-2021:3058
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_4.1RLSA-2021:3058
Alpine Linux 3.13glibFixed2.66.7-r0ALPINE-CVE-2021-27218

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.