CVE-2008-3282: Integer Overflow

Published Aug 6, 2008
·
Updated

Integer overflow in the rtlallocateMemory function in sal/rtl/source/allocglobal.c in the memory allocator in OpenOffice.org (OOo) 2.4.1, on 64-bit platforms, allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted document, related to a "numeric truncation error," a different vulnerability than CVE-2008-2152.

Other sources

It was discovered, that OpenOffice.org memory allocator is not 64bit clean. rtlallocateMemory() function in sal/rtl/source/allocglobal.c accepts one argument - salSize n. On 64bit platforms such as x8664, salSize is defined as unsigned long int. This requested memory chunk size is later memory aligned as size (type salSize). size is later used to calculate int index to galloctable[] array:

int index = (size - 1) >> RTLMEMALIGNSHIFT;

However, as sizeof(int) == 4 and sizeof(salSize) == 8 on 64bit platforms, the calculated value may not fit into index (this can happen when rtlallocateMemory() is called with large argument, e.g. when some other flaw causes OpenOffice to attempt to allocate chunk of memory with negative size, which wraps to large positive value during signed -> unsigned type conversion, such as [1]). Value stored in the index is wrapped / truncated, possibly resulting in the index being negative.

Before index is used, it is checked not to exceed fixed upper limit, but it's not checked whether its value is >= 0:

if (index < RTLMEMORYCACHEDLIMIT >> RTLMEMALIGNSHIFT)

Negative index used in galloctable[index] will cause OpenOffice to access memory outside of the galloctable[] array. This may result it crash, or if that points to an attacker controlled memory, attacker may possibly be able to use this flaw to run arbitrary code.

[1] http://www.openoffice.org/issues/showbug.cgi?id=91818 http://scary.beasts.org/security/CESA-2008-006.html

Red Hat

Affected Software

4 affected components
OpenOffice OpenOffice.org=2.4.1
Apache OpenOffice=2.4.1
Fedoraproject Fedora=8
Fedoraproject Fedora=9

Event History

Aug 6, 2008
Data Sourced
via Red Hat·12:46 PM
DescriptionSeverityAffected Software
Aug 29, 2008
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2008-3282?

CVE-2008-3282 is classified as a medium severity vulnerability due to its potential to cause denial of service and the possibility of arbitrary code execution.

2

How do I fix CVE-2008-3282?

To fix CVE-2008-3282, users should upgrade to a patched version of OpenOffice.org that addresses this vulnerability.

3

Which versions are affected by CVE-2008-3282?

CVE-2008-3282 affects OpenOffice.org version 2.4.1 on 64-bit platforms and specific releases of Fedora 8 and 9.

4

What is the impact of exploiting CVE-2008-3282?

Exploiting CVE-2008-3282 may lead to application crashes or allow attackers to execute arbitrary code through specially crafted documents.

5

Is CVE-2008-3282 a local or remote vulnerability?

CVE-2008-3282 is a remote vulnerability, allowing attacks via crafted documents opened in the affected software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203