2.1
CWE
119
Advisory Published
Updated

CVE-2006-1902: Buffer Overflow

First published: Thu Apr 20 2006(Updated: )

fold_binary in fold-const.c in GNU Compiler Collection (gcc) 4.1 improperly handles pointer overflow when folding a certain expr comparison to a corresponding offset comparison in cases other than EQ_EXPR and NE_EXPR, which might introduce buffer overflow vulnerabilities into applications that could be exploited by context-dependent attackers.NOTE: the vendor states that the essence of the issue is "not correctly interpreting an offset to a pointer as a signed value."

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
GNU Compiler Collection (GCC)=4.1

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 CVE-2006-1902?

    CVE-2006-1902 is considered a moderate severity vulnerability due to the potential for buffer overflow issues.

  • How do I fix CVE-2006-1902?

    To fix CVE-2006-1902, you should upgrade to a more recent version of the GNU Compiler Collection, as version 4.1 is affected.

  • What types of software are affected by CVE-2006-1902?

    CVE-2006-1902 specifically affects version 4.1 of the GNU Compiler Collection (GCC).

  • What are the consequences of exploiting CVE-2006-1902?

    Exploitation of CVE-2006-1902 may lead to buffer overflow vulnerabilities, potentially allowing arbitrary code execution.

  • When was CVE-2006-1902 reported?

    CVE-2006-1902 was reported in 2006, highlighting issues present in the GNU Compiler Collection.

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