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
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-681
Affected packages · 2
Operating systems · 29 fixes
Oracle Linux 1 release · 1 package
fixed 1
glib2
| Release | Package | Fixed in |
|---|---|---|
| 8 | glib2 +5 | 2.56.4-10.el8_4.1 |
Photon OS 1 release · 2 packages
fixed 2
pkg-config
glib
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | pkg-config | 0.29.2-4.ph4 |
| 4.0 | glib +3 | 2.66.7-1.ph4 |
Red Hat 2 releases · 2 packages
eol 1
fixed 2
glib2
mingw32-glib2
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | glib2 +5 | eol | — |
| 8 | glib2 +5 | 0:2.56.4-10.el8_4.1 | RHSA-2021:3058 |
| 8 | mingw32-glib2 +3 | 0:2.66.7-2.el8 | RHSA-2021:4526 |
SUSE Linux Enterprise 1 release · 1 package
fixed 1
glib2-devel
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | glib2-devel +14 | 2.48.2-12.22.1 | SUSE-SU-2021:0801-1 |
SUSE Linux Enterprise Micro 1 release · 1 package
fixed 1
glib2-tools
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.0 | glib2-tools +4 | 2.62.6-3.6.1 | SUSE-SU-2021:0778-1 |
alma 1 release · 2 packages
fixed 2
glib2-doc
mingw32-glib2
| Release | Package | Fixed in |
|---|---|---|
| 8 | glib2-doc +1 | 2.56.4-10.el8_4.1 |
| 8 | mingw32-glib2 +3 | 2.66.7-2.el8 |
debian 6 releases · 1 package
fixed 6
glib2-0
| Release | Package | Fixed in |
|---|---|---|
| 10 | glib2-0 | 2.58.3-2+deb10u3 |
| 11 | glib2-0 | 2.66.7-1 |
| 12 | glib2-0 | 2.66.7-1 |
| 13 | glib2-0 | 2.66.7-1 |
| 14 | glib2-0 | 2.66.7-1 |
| 9 | glib2-0 | 2.50.3-2+deb9u3 |
echo 1 release · 1 package
fixed 1
glib2-0
| Release | Package | Fixed in |
|---|---|---|
| glib2-0 | 2.66.7-1 |
openSUSE 1 release · 1 package
fixed 1
gio-branding-upstream
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | gio-branding-upstream +19 | 2.68.4-2.2 | openSUSE-SU-2024:10791-1 |
rocky 1 release · 1 package
fixed 1
glib2
| Release | Package | Fixed in |
|---|---|---|
| 8 | glib2 +3 | 2.56.4-10.el8_4.1 |
root.io debian 3 releases · 1 package
fixed 3
rootio-glib2-0
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-glib2-0 | 2.66.7-1 |
| 12 | rootio-glib2-0 | 2.66.7-1 |
| 13 | rootio-glib2-0 | 2.66.7-1 |
seal Red Hat 3 releases · 1 package
fixed 3
glib2
| Release | Package | Fixed in |
|---|---|---|
| 7 | glib2 +1 | 2.56.1-7.el7+sp999 |
| 8 | glib2 +1 | 2.56.4-165.el8_10+sp999 |
| 9 | glib2 +1 | 2.68.4-14.el9_4.1+sp999 |
ubuntu 4 releases · 1 package
fixed 4
glib2-0
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | glib2-0 | 2.56.4-0ubuntu0.18.04.7 |
| 18.04-ESM | glib2-0 | 2.56.4-0ubuntu0.18.04.7 |
| 20.04 | glib2-0 | 2.64.6-1~ubuntu20.04.2 |
| 20.04-ESM | glib2-0 | 2.64.6-1~ubuntu20.04.2 |
References
- access.redhat.com https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-27218.json
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-27218
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- gitlab.gnome.org https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1942
- gitlab.gnome.org https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1944
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-27218.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-3058.html
- lists.apache.org https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E
Show all 18 references
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/06/msg00006.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2REA7RVKN7ZHRLJOEGBRQKJIPZQPAELZ/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JJMPNDO4GDVURYQFYKFOWY5HAF4FTEPN/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-27218
- security.gentoo.org https://security.gentoo.org/glsa/202107-13
- security.netapp.com https://security.netapp.com/advisory/ntap-20210319-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-4759-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-27218
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.