CVE Vulnerabilities

CVE-2021-27218

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
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

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.7 (excluding)
GlibGnome2.67.0 (including)2.67.4 (excluding)
Red Hat Enterprise Linux 8RedHatmingw-glib2-0:2.66.7-2.el8*
Red Hat Enterprise Linux 8RedHatglib2-0:2.56.4-10.el8_4.1*
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