CVE Vulnerabilities

CVE-2021-27218

Incorrect Conversion between Numeric Types

Published: Feb 15, 2021 | Modified: Nov 07, 2023
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

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

Name Vendor Start Version End Version
Glib Gnome * 2.66.7 (excluding)
Glib Gnome 2.67.0 (including) 2.67.4 (excluding)
Red Hat Enterprise Linux 8 RedHat mingw-glib2-0:2.66.7-2.el8 *
Red Hat Enterprise Linux 8 RedHat glib2-0:2.56.4-10.el8_4.1 *
Glib2.0 Ubuntu bionic *
Glib2.0 Ubuntu esm-infra-legacy/trusty *
Glib2.0 Ubuntu focal *
Glib2.0 Ubuntu groovy *
Glib2.0 Ubuntu precise/esm *
Glib2.0 Ubuntu trusty *
Glib2.0 Ubuntu trusty/esm *
Glib2.0 Ubuntu upstream *
Glib2.0 Ubuntu xenial *

Potential Mitigations

References