Advisory Published
Updated

REDHAT-BUG-1344251

First published: Thu Jun 09 2016(Updated: )

It was found that original patch for issues <a href="https://access.redhat.com/security/cve/CVE-2015-1283">CVE-2015-1283</a> and <a href="https://access.redhat.com/security/cve/CVE-2015-2716">CVE-2015-2716</a> used overflow checks that could be optimized out by some compilers applying certain optimization settings, which can cause the vulnerability to remain even after applying the patch. One pattern in the fix for CVE-2015-1283/CVE-2015-2716 is: /* bufferSize is positive here */ do { bufferSize *= 2; } while (bufferSize &lt; neededSize &amp;&amp; bufferSize &gt; 0); if (bufferSize &lt;= 0) { errorCode = XML_ERROR_NO_MEMORY; return NULL; Any of the modern optimizing compiler, IF able to infer that bufferSize is initially positive (which is true but not obvious to see through local reasoning), will eliminate bufferSize &gt; 0 as always true when the execution is defined, and bufferSize &lt;= 0 as always false when the execution is defined. Without knowing that bufferSize starts positive, an optimizing compiler could also move the test bufferSize &gt; 0 out of the loop, that is, compile the code as if it had been written: if (bufferSize &lt;= 0) errorCode = XML_ERROR_NO_MEMORY; return NULL; else { do { bufferSize *= 2; } while (bufferSize &lt; neededSize); } Both cases leads to not eliminating the vulnerability. Upstream patch: <a href="https://sourceforge.net/p/expat/code_git/ci/f0bec73b018caa07d3e75ec8dd967f3785d71bde/tree/expat/lib/xmlparse.c?diff=a238d7ea7a715ef3850c4cbdd86aeda7077b6bbc">https://sourceforge.net/p/expat/code_git/ci/f0bec73b018caa07d3e75ec8dd967f3785d71bde/tree/expat/lib/xmlparse.c?diff=a238d7ea7a715ef3850c4cbdd86aeda7077b6bbc</a>

Affected SoftwareAffected VersionHow to fix
Oracle Expat

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-1344251?

    The severity of REDHAT-BUG-1344251 is considered high due to potential overflow vulnerabilities affecting the parsing functionality.

  • How do I fix REDHAT-BUG-1344251?

    To fix REDHAT-BUG-1344251, users should update to the latest version of the Expat library that addresses the overflow issues.

  • What versions of Expat are affected by REDHAT-BUG-1344251?

    All versions of Expat prior to the patched release addressing REDHAT-BUG-1344251 are affected.

  • What vulnerabilities are related to REDHAT-BUG-1344251?

    REDHAT-BUG-1344251 is related to CVE-2015-1283 and CVE-2015-2716, which both involve security risks associated with buffer overflows.

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

    As of now, the recommended action is to apply the latest patches as no specific workaround exists for REDHAT-BUG-1344251.

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