Skip to content
OpenAdvisories
High · 7.5 CVE-2012-0039 EUVD-2012-0079GHSA-7w5v-h2pc-qqwc

GLib 2.31.8 and earlier, when the g_str_hash function is used, computes hash values without restricting the ability to trigger hash collisi…

Published Jan 14, 2012 · Updated Jan 21, 2025 · Assigned by redhat

Description

GLib 2.31.8 and earlier, when the g_str_hash function is used, computes hash values without restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table. NOTE: this issue may be disputed by the vendor; the existence of the g_str_hash function is not a vulnerability in the library, because callers of g_hash_table_new and g_hash_table_new_full can specify an arbitrary hash function that is appropriate for the application.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glib2.0 No fix yet —
Debian 13 glib2.0 No fix yet —
Debian 12 glib2.0 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS glib2.0 No fix yet —
Ubuntu Pro 16.04 LTS glib2.0 No fix yet —
Ubuntu Pro 14.04 LTS glib2.0 No fix yet —

References