Security mailing lists by PureSourceCode

CVE-2008-1685

MEDIUM 6.8CVSS 2.0

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)

Published
6 Apr 2008
Last modified
16 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-119
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gnu gcc
cpe:2.3:a:gnu:gcc:4.2.0:*:*:*:*:*:*:*
= 4.2.0
NVD gnu gcc
cpe:2.3:a:gnu:gcc:4.2.1:*:*:*:*:*:*:*
= 4.2.1
NVD gnu gcc
cpe:2.3:a:gnu:gcc:4.2.2:*:*:*:*:*:*:*
= 4.2.2
NVD gnu gcc
cpe:2.3:a:gnu:gcc:4.2.3:*:*:*:*:*:*:*
= 4.2.3
NVD gnu gcc
cpe:2.3:a:gnu:gcc:4.2.4:*:*:*:*:*:*:*
= 4.2.4
NVD gnu gcc
cpe:2.3:a:gnu:gcc:4.3.0:*:*:*:*:*:*:*
= 4.3.0

References

History

  • 25 Nov 2026 20:14 UTC · NVD: first stored (published 6 Apr 2008)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.