What’s Vulnerable › Vulnerabilities
CVE-2008-1685
- Severity: medium (CVSS 6.8 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2008-04-06 · updated 2026-06-16
- Weakness: CWE-119
Description
gcc 4.2.0 through 4.3.0 in GNU Compiler Collection, when casts are not used, considers the sum of a pointer and an int to be greater than or equal to the pointer, which might lead to removal of length testing code that was intended as a protection mechanism against integer overflow and buffer overflow attacks, and provide no diagnostic message about this removal. NOTE: the vendor has determined that this compiler behavior is correct according to section 6.5.6 of the C99 standard (aka ISO/IEC 9899:1999)
Affected products
- GNU GCC: 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.3.0
References
- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763
- http://www.kb.cert.org/vuls/id/162289
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41686
- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763
- http://www.kb.cert.org/vuls/id/162289
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41686
Get alerted when CVE-2008-1685 or the next vulnerability affects your stack