PT-2021-1988

CVE-2021-27218

·

Published

2021-02-04

·

Updated

2026-10-14

Description by

CVSS 2.0
10
High
MetricsAV: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.
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
ALSA-2021:3058
ALSA-2021:4526
ALT-PU-2021-1310
AZL-6437
CESA-2021_3058
CESA-2021_4526
CLSA-2025-1758705538
CLSA-2025-1758705749
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_3058
RHSA-2021:4526
RHSA-2021_4526
RLSA-2021:3058
SUSE-SU-2021:0778-1
SUSE-SU-2021_0778-1
SUSE-SU-2021:0801-1
SUSE-SU-2021_0801-1
SUSE-SU-2021:0890-1
SUSE-SU-2021_0890-1
USN-4759-1
Found an issue in the description? Have something to add? Feel free to write us 👾