This update for glib2 fixes the following issues:
- CVE-2021-27218: g_byte_array_new_take takes a gsize as length but stores
in a guint, this patch will refuse if the length is larger than guint.
(bsc#1182328)
- CVE-2021-27219: g_memdup takes a guint as parameter and sometimes leads
into an integer overflow, so add a g_memdup2 function which uses gsize
to replace it. (bsc#1182362)
This update was imported from the SUSE:SLE-15-SP2:Update update project.
Patch Instructions:
To install this openSUSE Security Update use the SUSE recommended installation methods
like YaST online_update or "zypper patch".
Alternatively you can run the command listed for your product:
- openSUSE Leap 15.2:
zypper in -t patch openSUSE-2021-406=1
- openSUSE Leap 15.2 (i586 x86_64):
glib2-debugsource-2.62.6-lp152.2.6.1
glib2-devel-2.62.6-lp152.2.6.1
glib2-devel-debuginfo-2.62.6-lp152.2.6.1
glib2-devel-static-2.62.6-lp152.2.6.1
glib2-tests-2.62.6-lp152.2.6.1
glib2-tests-debuginfo-2.62.6-lp152.2.6.1
glib2-tools-2.62.6-lp152.2.6.1
glib2-tools-debuginfo-2.62.6-lp152.2.6.1
libgio-2_0-0-2.62.6-lp152.2.6.1
libgio-2_0-0-debuginfo-2.62.6-lp152.2.6.1
libgio-fam-2.62.6-lp152.2.6.1
libgio-fam-debuginfo-2.62.6-lp152.2.6.1
libglib-2_0-0-2.62.6-lp152.2.6.1
libglib-2_0-0-debuginfo-2.62.6-lp152.2.6.1
libgmodule-2_0-0-2.62.6-lp152.2.6.1
libgmodule-2_0-0-debuginfo-2.62.6-lp152.2.6.1
libgobject-2_0-0-2.62.6-lp152.2.6.1
libgobject-2_0-0-debuginfo-2.62.6-lp152.2.6.1
libgthread-2_0-0-2.62.6-lp152.2.6.1
libgthread-2_0-0-debuginfo-2.62.6-lp152.2.6.1
- openSUSE Leap 15.2 (x86_64):
glib2-devel-32bit-2.62.6-lp152.2.6.1
glib2-devel-32bit-debuginfo-2.62.6-lp152.2.6.1
glib2-tools-32bit-2.62.6-lp152.2.6.1
glib2-tools-32bit-debuginfo-2.62.6-lp152.2.6.1
libgio-2_0-0-32bit-2.62.6-lp152.2....
Read the Full Advisoryhttps://www.suse.com/security/cve/CVE-2021-27218.html
https://www.suse.com/security/cve/CVE-2021-27219.html
https://bugzilla.suse.com/1182328
https://bugzilla.suse.com/1182362
Get the latest Linux and open source security news straight to your inbox.