CVE-2021-27218

glib: integer overflow in g_byte_array_new_take function when called with a buffer of 4GB or more on a 64-bit platform

Published Feb 15, 2021 CVSS 3.1 · 7.5 High EPSS 4.1% KEV · Not listed
Description
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3044-1 glib2.0 security update
EUVD EUVD EUVD-2021-13983 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.
Ubuntu USN Ubuntu USN USN-4759-1 GLib vulnerabilities
Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-681

    Incorrect Conversion between Numeric Types

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 14, 2026, 11:34 AM
Reserved
Feb 15, 2021, 12:00 AM
Status
Modified
Published
Feb 15, 2021, 5:15 PM
Modified
Oct 14, 2026, 12:17 PM
Severity
Moderate
Public date
Feb 10, 2021, 12:00 AM