Advisory Published
Updated

REDHAT-BUG-458056

First published: Wed Aug 06 2008(Updated: )

It was discovered, that OpenOffice.org memory allocator is not 64bit clean. rtl_allocateMemory() function in sal/rtl/source/alloc_global.c accepts one argument - sal_Size n. On 64bit platforms such as x86_64, sal_Size is defined as unsigned long int. This requested memory chunk size is later memory aligned as size (type sal_Size). size is later used to calculate int index to g_alloc_table[] array: int index = (size - 1) &gt;&gt; RTL_MEMALIGN_SHIFT; However, as sizeof(int) == 4 and sizeof(sal_Size) == 8 on 64bit platforms, the calculated value may not fit into index (this can happen when rtl_allocateMemory() 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 -&gt; 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 &gt;= 0: if (index &lt; RTL_MEMORY_CACHED_LIMIT &gt;&gt; RTL_MEMALIGN_SHIFT) Negative index used in g_alloc_table[index] will cause OpenOffice to access memory outside of the g_alloc_table[] 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] <a href="http://www.openoffice.org/issues/show_bug.cgi?id=91818">http://www.openoffice.org/issues/show_bug.cgi?id=91818</a> <a href="http://scary.beasts.org/security/CESA-2008-006.html">http://scary.beasts.org/security/CESA-2008-006.html</a>

Affected SoftwareAffected VersionHow to fix
Apache OpenOffice

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-458056?

    The severity of REDHAT-BUG-458056 is considered high due to potential memory allocation issues on 64-bit platforms.

  • How does REDHAT-BUG-458056 affect OpenOffice.org?

    REDHAT-BUG-458056 affects OpenOffice.org by leading to incorrect memory allocation, which may cause application instability.

  • How do I fix REDHAT-BUG-458056?

    To fix REDHAT-BUG-458056, ensure you are using the latest patched version of Apache OpenOffice provided by the vendor.

  • What versions of OpenOffice are affected by REDHAT-BUG-458056?

    REDHAT-BUG-458056 affects all versions of Apache OpenOffice that utilize the vulnerable memory allocation function.

  • Is there a workaround for REDHAT-BUG-458056?

    Currently, there are no well-documented workarounds for REDHAT-BUG-458056 other than applying the recommended patches.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203