CVE Vulnerabilities

CVE-2021-27219

Incorrect Conversion between Numeric Types

Published: Feb 15, 2021 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
9.8 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

Affected Software

NameVendorStart VersionEnd Version
GlibGnome*2.66.6 (excluding)
GlibGnome2.67.0 (including)2.67.3 (excluding)
Red Hat Enterprise Linux 6 Extended Lifecycle SupportRedHatglib2-0:2.28.8-11.el6_10*
Red Hat Enterprise Linux 7RedHatglib2-0:2.56.1-9.el7_9*
Red Hat Enterprise Linux 7.2 Advanced Update SupportRedHatglib2-0:2.42.2-6.el7_2*
Red Hat Enterprise Linux 7.3 Advanced Update SupportRedHatglib2-0:2.46.2-5.el7_3*
Red Hat Enterprise Linux 7.4 Advanced Update SupportRedHatglib2-0:2.50.3-4.el7_4*
Red Hat Enterprise Linux 7.4 Telco Extended Update SupportRedHatglib2-0:2.50.3-4.el7_4*
Red Hat Enterprise Linux 7.4 Update Services for SAP SolutionsRedHatglib2-0:2.50.3-4.el7_4*
Red Hat Enterprise Linux 7.6 Extended Update SupportRedHatglib2-0:2.56.1-5.el7_6*
Red Hat Enterprise Linux 7.7 Extended Update SupportRedHatglib2-0:2.56.1-6.el7_7*
Red Hat Enterprise Linux 8RedHatmingw-glib2-0:2.66.7-2.el8*
Red Hat Enterprise Linux 8RedHatglib2-0:2.56.4-10.el8_4*
Red Hat Enterprise Linux 8.1 Extended Update SupportRedHatglib2-0:2.56.4-8.el8_1*
Red Hat Enterprise Linux 8.2 Extended Update SupportRedHatglib2-0:2.56.4-8.el8_2.1*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-controller-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-log-reader-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-must-gather-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-operator-bundle:v1.4.6-5*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-registry-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-rsync-transfer-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-ui-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-velero-plugin-for-aws-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-velero-plugin-for-gcp-rhel8:v1.4.6-3*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-velero-plugin-for-microsoft-azure-rhel8:v1.4.6-4*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-velero-restic-restore-helper-rhel8:v1.4.6-5*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-migration-velero-rhel8:v1.4.6-5*
Red Hat Migration Toolkit for Containers 1.4RedHatrhmtc/openshift-velero-plugin-rhel8:v1.4.6-4*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7RedHatredhat-virtualization-host-0:4.3.16-20210615.0.el7_9*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8RedHatredhat-virtualization-host-0:4.4.6-20210615.0.el8_4*
Glib2.0Ubuntubionic*
Glib2.0Ubuntuesm-infra-legacy/trusty*
Glib2.0Ubuntuesm-infra/bionic*
Glib2.0Ubuntuesm-infra/focal*
Glib2.0Ubuntuesm-infra/xenial*
Glib2.0Ubuntufocal*
Glib2.0Ubuntugroovy*
Glib2.0Ubuntuprecise/esm*
Glib2.0Ubuntutrusty*
Glib2.0Ubuntutrusty/esm*
Glib2.0Ubuntuupstream*
Glib2.0Ubuntuxenial*

Potential Mitigations

References