PT-2021-1988 · Glib+10 · Glib+10

Padma81

·

Published

2021-02-04

·

Updated

2024-05-06

·

CVE-2021-27218

CVSS v2.0

10

High

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions GLib versions prior to 2.66.7 GLib versions 2.67.x prior to 2.67.4
Description The issue is related to the function g byte array new take() in the GLib library, which is associated with the copying of a buffer without checking the size of the input data. If this function is 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. This could potentially allow a remote attacker to execute arbitrary code.
Recommendations For GLib versions prior to 2.66.7, update to version 2.66.7 or later. For GLib versions 2.67.x prior to 2.67.4, update to version 2.67.4 or later. As a temporary workaround, consider avoiding the use of the g byte array new take() function with large buffers until a patch is available.

Fix

Buffer Overflow

Weakness Enumeration

Related Identifiers

ALSA-2021:3058
ALSA-2021:4526
ALT-PU-2021-1310
AZL-6437
BDU:2021-00816
CESA-2021_3058
CESA-2021_4526
CVE-2021-27218
DLA-3044-1
MGASA-2021-0318
OESA-2021-1106
OESA-2021-1107
OPENSUSE-SU-2021:0406-1
OPENSUSE-SU-2021_0406-1
OPENSUSE-SU-2024:10791-1
RHSA-2021:3058
RHSA-2021:4526
RHSA-2021_3058
RHSA-2021_4526
RLSA-2021:3058
SUSE-SU-2021:0778-1
SUSE-SU-2021:0801-1
SUSE-SU-2021:0890-1
SUSE-SU-2021_0778-1
SUSE-SU-2021_0801-1
SUSE-SU-2021_0890-1
USN-4759-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Glib
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu