# CVE-2021-27219: glib2: GLib provides the core application building blocks for libraries and applications written in C

CVE-2021-27219 is fixed in 15 products on 1 platform, first by libglib2.0-0 2.56.4-0ubuntu0.18.04.7, released February 15, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-27219
- Priority: High
- CVSS: 9.8 (Important)
- EPSS: 0.0306
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 15, 2021

## Description

GLib provides the core application building blocks for libraries and applications written in C. It provides the core object system used in GNOME, the main loop implementation, and a large set of utility functions for strings and common data structures.  Security Fix(es):  * glib: integer overflow in g_bytes_new function on 64-bit platforms due to an implicit cast from 64 bits to 32 bits (CVE-2021-27219)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.  Bug Fix(es):  * Refcounting issue causes crashes and slow workarounds (BZ#1953553)

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | glib2 RHEL 8 | 0:2.56.4-10.el8_4 | [RHSA-2021:2170](https://patchblox.com/security/data/fix/linux/rhsa-2021-2170.md) | Jun 1, 2021 |
| Linux | glib2 ol 8 | 0:2.56.4-10.el8_4 | [ELSA-2021-2170](https://patchblox.com/security/data/fix/linux/elsa-2021-2170.md) | Jun 2, 2021 |
| Linux | glib2-devel RHEL 8 | 0:2.56.4-10.el8_4 | [RHSA-2021:2170](https://patchblox.com/security/data/fix/linux/rhsa-2021-2170.md) | Jun 1, 2021 |
| Linux | glib2-devel ol 8 | 0:2.56.4-10.el8_4 | [ELSA-2021-2170](https://patchblox.com/security/data/fix/linux/elsa-2021-2170.md) | Jun 2, 2021 |
| Linux | glib2-doc RHEL 8 | 0:2.56.4-10.el8_4 | [RHSA-2021:2170](https://patchblox.com/security/data/fix/linux/rhsa-2021-2170.md) | Jun 1, 2021 |
| Linux | glib2-doc ol 8 | 0:2.56.4-10.el8_4 | [ELSA-2021-2170](https://patchblox.com/security/data/fix/linux/elsa-2021-2170.md) | Jun 2, 2021 |
| Linux | glib2-fam RHEL 8 | 0:2.56.4-10.el8_4 | [RHSA-2021:2170](https://patchblox.com/security/data/fix/linux/rhsa-2021-2170.md) | Jun 1, 2021 |
| Linux | glib2-fam ol 8 | 0:2.56.4-10.el8_4 | [ELSA-2021-2170](https://patchblox.com/security/data/fix/linux/elsa-2021-2170.md) | Jun 2, 2021 |
| Linux | glib2-static RHEL 8 | 0:2.56.4-10.el8_4 | [RHSA-2021:2170](https://patchblox.com/security/data/fix/linux/rhsa-2021-2170.md) | Jun 1, 2021 |
| Linux | glib2-static ol 8 | 0:2.56.4-10.el8_4 | [ELSA-2021-2170](https://patchblox.com/security/data/fix/linux/elsa-2021-2170.md) | Jun 2, 2021 |
| Linux | glib2-tests RHEL 8 | 0:2.56.4-10.el8_4 | [RHSA-2021:2170](https://patchblox.com/security/data/fix/linux/rhsa-2021-2170.md) | Jun 1, 2021 |
| Linux | glib2-tests ol 8 | 0:2.56.4-10.el8_4 | [ELSA-2021-2170](https://patchblox.com/security/data/fix/linux/elsa-2021-2170.md) | Jun 2, 2021 |
| Linux | libglib2.0-0 Ubuntu 18.04.6 LTS (bionic) | 2.56.4-0ubuntu0.18.04.7 | [libglib2.0-0 2.56.4-0ubuntu0.18.04.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libglib2.0-0-2.56.4-0ubuntu0.18.04.7.md) | Feb 15, 2021 |
| Linux | libglib2.0-0 Ubuntu 20.04 LTS (focal) | 2.64.6-1~ubuntu20.04.2 | [libglib2.0-0 2.64.6-1~ubuntu20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libglib2.0-0-2.64.6-1-ubuntu20.04.2.md) | Feb 15, 2021 |
| Linux | libglib2.0-bin Ubuntu 18.04.6 LTS (bionic) | 2.56.4-0ubuntu0.18.04.7 | [libglib2.0-bin 2.56.4-0ubuntu0.18.04.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libglib2.0-bin-2.56.4-0ubuntu0.18.04.7.md) | Feb 15, 2021 |
| Linux | libglib2.0-bin Ubuntu 20.04 LTS (focal) | 2.64.6-1~ubuntu20.04.2 | [libglib2.0-bin 2.64.6-1~ubuntu20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libglib2.0-bin-2.64.6-1-ubuntu20.04.2.md) | Feb 15, 2021 |
| Linux | libglib2.0-data Ubuntu 18.04.6 LTS (bionic) | 2.56.4-0ubuntu0.18.04.7 | [libglib2.0-data 2.56.4-0ubuntu0.18.04.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libglib2.0-data-2.56.4-0ubuntu0.18.04.7.md) | Feb 15, 2021 |
| Linux | libglib2.0-data Ubuntu 20.04 LTS (focal) | 2.64.6-1~ubuntu20.04.2 | [libglib2.0-data 2.64.6-1~ubuntu20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libglib2.0-data-2.64.6-1-ubuntu20.04.2.md) | Feb 15, 2021 |
| Linux | libglib2.0-dev-bin Ubuntu 18.04.6 LTS (bionic) | 2.56.4-0ubuntu0.18.04.7 | [libglib2.0-dev-bin 2.56.4-0ubuntu0.18.04.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libglib2.0-dev-bin-2.56.4-0ubuntu0.18.04.7.md) | Feb 15, 2021 |
| Linux | libglib2.0-dev-bin Ubuntu 20.04 LTS (focal) | 2.64.6-1~ubuntu20.04.2 | [libglib2.0-dev-bin 2.64.6-1~ubuntu20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libglib2.0-dev-bin-2.64.6-1-ubuntu20.04.2.md) | Feb 15, 2021 |
| Linux | libglib2.0-tests Ubuntu 18.04.6 LTS (bionic) | 2.56.4-0ubuntu0.18.04.7 | [libglib2.0-tests 2.56.4-0ubuntu0.18.04.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libglib2.0-tests-2.56.4-0ubuntu0.18.04.7.md) | Feb 15, 2021 |
| Linux | libglib2.0-tests Ubuntu 20.04 LTS (focal) | 2.64.6-1~ubuntu20.04.2 | [libglib2.0-tests 2.64.6-1~ubuntu20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libglib2.0-tests-2.64.6-1-ubuntu20.04.2.md) | Feb 15, 2021 |
| Linux | mingw32-glib2 RHEL 8 | 0:2.66.7-2.el8 | [RHSA-2021:4526](https://patchblox.com/security/data/fix/linux/rhsa-2021-4526.md) | Nov 9, 2021 |
| Linux | mingw32-glib2-static RHEL 8 | 0:2.66.7-2.el8 | [RHSA-2021:4526](https://patchblox.com/security/data/fix/linux/rhsa-2021-4526.md) | Nov 9, 2021 |
| Linux | mingw64-glib2 RHEL 8 | 0:2.66.7-2.el8 | [RHSA-2021:4526](https://patchblox.com/security/data/fix/linux/rhsa-2021-4526.md) | Nov 9, 2021 |
| Linux | mingw64-glib2-static RHEL 8 | 0:2.66.7-2.el8 | [RHSA-2021:4526](https://patchblox.com/security/data/fix/linux/rhsa-2021-4526.md) | Nov 9, 2021 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
