QID 354922

Date Published: 2023-05-08

QID 354922: Amazon Linux Security Advisory for glib2 : ALAS-2023-1742

in gnome glib 2.56.1, g_markup_parse_context_end_parse() in gmarkup.c has a null pointer dereference. (
( CVE-2018-16428) gnome glib 2.56.1 has an out-of-bounds read vulnerability in g_markup_parse_context_parse() in gmarkup.c, related to utf8_str(). (
( CVE-2018-16429) the keyfile settings backend in gnome glib (aka glib2.0) before 2.60.0 creates directories using g_file_make_directory_with_parents (kfsb->dir, null, null) and files using g_file_replace_contents (kfsb->file, contents, length, null, false, g_file_create_replace_destination, null, null, null).
Consequently, it does not properly restrict directory (and file) permissions.
Instead, for directories, 0777 permissions are used; for files, default file permissions are used.
This is similar to( CVE-2019-12450. (
( CVE-2019-13012) an issue was discovered in gnome glib before 2.66.8.
When g_file_replace() is used with g_file_create_replace_destination to replace a path that is a dangling symlink, it incorrectly also creates the target of the symlink as an empty file, which could conceivably have security relevance if the symlink is attacker-controlled. (
If the path is a symlink to a file that already exists, then the contents of that file correctly remain unchanged.) (
( CVE-2021-28153) a flaw was found in glib before version 2.63.6.
Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    Please refer to Amazon advisory: ALAS-2023-1742 for affected packages and patching details, or update with your package manager.
    Vendor References
    Software Advisories
    Advisory ID Software Component Link
    ALAS-2023-1742 amazon linux URL Logo alas.aws.amazon.com/ALAS-2023-1742.html