OESA-2021-1106

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1106
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1106.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2021-1106
Upstream
Published
2021-04-07T11:02:44Z
Modified
2025-09-03T06:17:08.249433Z
Summary
glib2 security update
Details

GLib is a bundle of three (formerly five) low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since.

Security Fix(es):

An issue was discovered in GNOME GLib before 2.66.7 and 2.67.x before 2.67.4. If gbytearraynewtake() 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.(CVE-2021-27218)

An issue was discovered in GNOME GLib before 2.66.6 and 2.67.x before 2.67.3. The function gbytesnew has an integer overflow on 64-bit platforms due to an implicit cast from 64 bits to 32 bits. The overflow could potentially lead to memory corruption.(CVE-2021-27219)

* DISPUTED * GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in goptiongroupaddentries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to goptiongroupaddentries()." The researcher states that this pattern is undocumented.(CVE-2020-35457)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:20.03-LTS / glib2

Package

Name
glib2
Purl
pkg:rpm/openEuler/glib2&distro=openEuler-20.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.62.5-4.oe1

Ecosystem specific

{
    "noarch": [
        "glib2-help-2.62.5-4.oe1.noarch.rpm"
    ],
    "src": [
        "glib2-2.62.5-4.oe1.src.rpm"
    ],
    "x86_64": [
        "glib2-debugsource-2.62.5-4.oe1.x86_64.rpm",
        "glib2-debuginfo-2.62.5-4.oe1.x86_64.rpm",
        "glib2-2.62.5-4.oe1.x86_64.rpm",
        "glib2-devel-2.62.5-4.oe1.x86_64.rpm"
    ],
    "aarch64": [
        "glib2-2.62.5-4.oe1.aarch64.rpm",
        "glib2-debuginfo-2.62.5-4.oe1.aarch64.rpm",
        "glib2-debugsource-2.62.5-4.oe1.aarch64.rpm",
        "glib2-devel-2.62.5-4.oe1.aarch64.rpm"
    ]
}