Buffer overflow in FreeBSD
CVE-2009-0689
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS: 0.281 (98.1th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 98th percentile — 98.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.281 · newest: 0.281 · change: 0.000
Affected products
- FreeBSD — versions 6.4, 7.2
- K-Meleon Project — versions 1.5.3
- Mozilla Firefox — versions 3.0.1, 3.0.2, 3.0.3
- Mozilla Seamonkey — versions 1.1.8
- NetBSD — versions 5.0
- OpenBSD — versions 4.5
Weakness classification (CWE)
Public proof-of-concept exploits
References
- cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gdtoa/gdtoaimp.h (Patch)
- secunia.com/secunia_research/2009-35/ (Vendor Advisory)
- bugzilla.mozilla.org/show_bug.cgi
- securityreason.com/achievement_securityalert/63 (Exploit, third-party-advisory)
- www.securityfocus.com/archive/1/507979/100/0/threaded (mailing-list)
- securityreason.com/achievement_securityalert/78 (third-party-advisory)
- www.redhat.com/support/errata/RHSA-2010-0153.html (vendor-advisory)
- securityreason.com/achievement_securityalert/75 (third-party-advisory)
- www.mandriva.com/security/advisories (vendor-advisory)
- secunia.com/advisories/39001 (Vendor Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2009-0689?
- CVE-2009-0689 is a vulnerability in FreeBSD, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. Published 2009-07-01.
- Is CVE-2009-0689 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.