CVE-2021-27218 Integer overflow in n/a
An integer overflow in GLib's g_byte_array_new_take() causes length truncation for buffers over 4GB, potentially leading to memory corruption or logic errors.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-27218?
CVE-2021-27218 is a high-severity vulnerability in Debian Debian Linux, published on 15 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-681
Which versions are affected by CVE-2021-27218?
It affects 7 products.
Linux distribution packages (19)
glib2-doc AlmaLinux:8 | All versions | 2.56.4-10.el8_4.1 |
glib2-static AlmaLinux:8 | All versions | 2.56.4-10.el8_4.1 |
glib2 Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-devel Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-devel-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-fam Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-fam-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-tests Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-tests-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:2.56.4-10.el8_4.1 |
glib2-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:2.56.4-10.el8_4.1 |
glib2-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:2.56.4-10.el8_4.1 |
glib2-devel-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:2.56.4-10.el8_4.1 |
glib2-doc Red Hat:enterprise_linux:8::crb | All versions | 0:2.56.4-10.el8_4.1 |
glib2-fam-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:2.56.4-10.el8_4.1 |
glib2-static Red Hat:enterprise_linux:8::crb | All versions | 0:2.56.4-10.el8_4.1 |
glib2-tests-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:2.56.4-10.el8_4.1 |
glib2 Rocky Linux:8 | All versions | 0:2.56.4-10.el8_4.1 |
Products include Broadcom Brocade Fabric Operating System Firmware, Debian Debian Linux, Fedoraproject Fedora, Gnome Glib, Netapp Active Iq Unified Manager, Netapp Cloud Backup and 1 more.
How do I fix CVE-2021-27218?
Upgrade to a fixed version.
Is CVE-2021-27218 being exploited?
There is no known exploitation of CVE-2021-27218 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2021-27218, ALSA-2021:3058, AZL-6437, CLSA-2023-1696352100, DEBIAN-CVE-2021-27218, GHSA-vvj7-w55j-xgmw and 4 more.