CVE-2009-0689: Buffer Overflow
Array index error in the (1) dtoa implementation in dtoa.c (aka pdtoa.c) and the (2) gdtoa (aka new dtoa) implementation in gdtoa/misc.c in libc, as used in multiple operating systems and products including in FreeBSD 6.4 and 7.2, NetBSD 5.0, OpenBSD 4.5, Mozilla Firefox 3.0.x before 3.0.15 and 3.5.x before 3.5.4, K-Meleon 1.5.3, SeaMonkey 1.1.8, and other products, allows context-dependent attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a large precision value in the format argument to a printf function, which triggers incorrect memory allocation and a heap-based buffer overflow during conversion to a floating-point number.
Other sources
It was reported [1] that KDE's kdelibs 4.3.3, and possibly earlier versions, suffers from a flaw in its dtoa implementation. A heap-based buffer overflow in the string to floating point number conversion routines could allow an attacker to craft some malicious JavaScript code containing a very long string to be converted to a floating point number. This could result in improper memory allocation and the execution of an arbitrary memory location, which could be leveraged to run arbitrary code on the victim's computer.
This same flaw was originally reported against OpenBSD and NetBSD [2], and is similar to the Mozilla flaw CVE-2009-1563. A patch to correct this issue was commited to kdelibs/kjs/dtoa.cpp today [3].
[1] http://marc.info/?l=full-disclosure&m=125867830114502&w=2 [2] http://securityreason.com/achievementsecurityalert/63 [3] http://lists.kde.org/?l=kde-commits&m=125874573511598&w=2 http://websvn.kde.org/?view=revision&revision=1052100
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 1052100
Event History
Frequently Asked Questions
What is the severity of CVE-2009-0689?
CVE-2009-0689 is classified as a high severity vulnerability due to its impact on affected software.
How do I fix CVE-2009-0689?
To fix CVE-2009-0689, update your software to the latest version that addresses this vulnerability.
What software is affected by CVE-2009-0689?
CVE-2009-0689 affects multiple software including various versions of Mozilla Firefox, FreeBSD, NetBSD, and OpenBSD.
What type of vulnerability is CVE-2009-0689?
CVE-2009-0689 is an array index error vulnerability that can lead to potential exploitation.
Is there a workaround for CVE-2009-0689?
No specific workaround is recommended for CVE-2009-0689; applying the appropriate software updates is the best course of action.