CVE-2008-1685
Severity CVSS v4.0:
Pending analysis
Type:
CWE-119
Buffer Errors
Publication date:
06/04/2008
Last modified:
09/04/2025
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)
Impact
Base Score 2.0
6.80
Severity 2.0
MEDIUM
Vulnerable products and versions
CPE | From | Up to |
---|---|---|
cpe:2.3:a:gnu:gcc:4.2.0:*:*:*:*:*:*:* | ||
cpe:2.3:a:gnu:gcc:4.2.1:*:*:*:*:*:*:* | ||
cpe:2.3:a:gnu:gcc:4.2.2:*:*:*:*:*:*:* | ||
cpe:2.3:a:gnu:gcc:4.2.3:*:*:*:*:*:*:* | ||
cpe:2.3:a:gnu:gcc:4.2.4:*:*:*:*:*:*:* | ||
cpe:2.3:a:gnu:gcc:4.3.0:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page