cve.bz

CVE-2021-27219

7.5 highExploit referenceEPSS 3.1%

High (7.5). EPSS 3.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.1% (unchanged from 3.1% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-681 Incorrect Conversion between Numeric Types
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-27219 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-27219?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-27219?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-27219 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-27219

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-27219](https://cve.bz/cve/badge/CVE-2021-27219.svg)](https://cve.bz/cve/CVE-2021-27219)

HTML:

<a href="https://cve.bz/cve/CVE-2021-27219"><img src="https://cve.bz/cve/badge/CVE-2021-27219.svg" alt="CVE-2021-27219"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnome:glibbefore 2.66.6
gnome:glibfrom 2.67.0 before 2.67.3
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9glib2.02.50.3-2+deb9u3DLA-3044-1
Debian12, 13, 14glib2.02.66.6-1DEBIAN-CVE-2021-27219
Ubuntu16.04:LTSglib2.02.48.2-0ubuntu4.7UBUNTU-CVE-2021-27219 USN-4759-1
Ubuntu18.04:LTSglib2.02.56.4-0ubuntu0.18.04.7UBUNTU-CVE-2021-27219 USN-4759-1
Ubuntu20.04:LTSglib2.02.64.6-1~ubuntu20.04.2UBUNTU-CVE-2021-27219 USN-4759-1
UbuntuPro:14.04:LTSglib2.0no fix listedUBUNTU-CVE-2021-27219
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationglib2, glib2-doc, glib2-fam and 4 more0:2.56.1-9.el7_9RHSA-2021:2147
Red Hatenterprise_linux:7::computenodeglib2-doc, glib2-fam, glib2-devel and 3 more0:2.56.1-9.el7_9RHSA-2021:2147
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.16-20210615.0.el7_9RHSA-2021:2519
Red Hatenterprise_linux:8::baseosglib2, glib2-fam, glib2-devel and 6 more0:2.56.4-10.el8_4RHSA-2021:2170
Red Hatenterprise_linux:8::crbglib2-doc, glib2-static, glib2-debuginfo and 4 more0:2.56.4-10.el8_4RHSA-2021:2170
Red Hatenterprise_linux:8::crbmingw-glib2, mingw32-glib2, mingw64-glib2 and 4 more0:2.66.7-2.el8RHSA-2021:4526
Red Hatrhel_aus:7.2::serverglib2, glib2-doc, glib2-fam and 2 more0:2.42.2-6.el7_2RHSA-2021:2203
Red Hatrhel_aus:7.3::serverglib2, glib2-doc, glib2-fam and 2 more0:2.46.2-5.el7_3RHSA-2021:2173
Red Hatrhel_aus:7.4::server, rhel_e4s:7.4::server, rhel_tus:7.4::serverglib2, glib2-doc, glib2-fam and 4 more0:2.50.3-4.el7_4RHSA-2021:2174
Red Hatrhel_els:6glib2, glib2-doc, glib2-devel and 2 more0:2.28.8-11.el6_10RHSA-2021:2467
Red Hatrhel_eus:7.6::computenode, rhel_eus:7.6::serverglib2, glib2-doc, glib2-fam and 4 more0:2.56.1-5.el7_6RHSA-2021:2204
Red Hatrhel_eus:7.7::computenode, rhel_eus:7.7::serverglib2, glib2-doc, glib2-fam and 4 more0:2.56.1-6.el7_7RHSA-2021:2175
5 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 moreglib22.54.3-4.24.1SUSE-SU-2021:0890-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 15 moreglib22.48.2-12.22.1SUSE-SU-2021:0801-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2glib22.62.6-3.6.1SUSE-SU-2021:0778-1
openSUSELeap 15.2glib22.62.6-lp152.2.6.1openSUSE-SU-2021:0406-1
AlmaLinux8glib2-doc, glib2-static2.56.4-10.el8_4ALSA-2021:2170
AlmaLinux8mingw32-glib2, mingw64-glib2, mingw32-glib2-static and 1 more2.66.7-2.el8ALSA-2021:4526
Rocky Linux8glib20:2.56.4-10.el8_4RLSA-2021:2170
Alpinev3.13, v3.14, v3.15 and 9 moreglib2.66.6-r0ALPINE-CVE-2021-27219
Azure Linux2glib2.60.1-5AZL-6438

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Applications that just use GBytes to access the data are affected by this flaw but the highest threat is to data confidentiality and/or the application availability, due to possible out-of-bounds reads. However, if the data in GBytes is taken through functions such as g_bytes_unref_to_data or g_bytes_unref_to_array it might be possible to have out-of-bounds writes due to the wrongly reported size of the buffer.

Applications that use g_memdup to duplicate memory with user-controlled sizes should pay extra attention to the fact that g_memdup accepts a guint size instead of gsize. Thus directly passing a gsize value to g_memdup may results in integer truncation, allocating a buffer smaller than expected.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Supportglib2-0:2.28.8-11.el6_10Fixed 2021-06-17RHSA-2021:2467
Red Hat Enterprise Linux 7glib2-0:2.56.1-9.el7_9Fixed 2021-05-31RHSA-2021:2147
Red Hat Enterprise Linux 7.2 Advanced Update Supportglib2-0:2.42.2-6.el7_2Fixed 2021-06-02RHSA-2021:2203
Red Hat Enterprise Linux 7.3 Advanced Update Supportglib2-0:2.46.2-5.el7_3Fixed 2021-06-01RHSA-2021:2173
Red Hat Enterprise Linux 7.4 Advanced Update Supportglib2-0:2.50.3-4.el7_4Fixed 2021-06-01RHSA-2021:2174
Red Hat Enterprise Linux 7.4 Telco Extended Update Supportglib2-0:2.50.3-4.el7_4Fixed 2021-06-01RHSA-2021:2174
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutionsglib2-0:2.50.3-4.el7_4Fixed 2021-06-01RHSA-2021:2174
Red Hat Enterprise Linux 7.6 Extended Update Supportglib2-0:2.56.1-5.el7_6Fixed 2021-06-02RHSA-2021:2204
Red Hat Enterprise Linux 7.7 Extended Update Supportglib2-0:2.56.1-6.el7_7Fixed 2021-06-01RHSA-2021:2175
Red Hat Enterprise Linux 8mingw-glib2-0:2.66.7-2.el8Fixed 2021-11-09RHSA-2021:4526
Red Hat Enterprise Linux 8glib2-0:2.56.4-10.el8_4Fixed 2021-06-01RHSA-2021:2170
Red Hat Enterprise Linux 8.1 Extended Update Supportglib2-0:2.56.4-8.el8_1Fixed 2021-06-01RHSA-2021:2172
Red Hat Enterprise Linux 8.2 Extended Update Supportglib2-0:2.56.4-8.el8_2.1Fixed 2021-06-01RHSA-2021:2171
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-controller-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-log-reader-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-must-gather-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-operator-bundle:v1.4.6-5Fixed 2021-07-21RHBA-2021:2854
Red Hat Enterprise Linux 6firefoxNot affected
Red Hat Enterprise Linux 6thunderbirdNot affected
Red Hat Enterprise Linux 9glib2Not affected
11 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-27219.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON