CVE-2008-1685

Summary

CVECVE-2008-1685
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2008-04-06 23:44:00 UTC
Updated2023-11-07 02:02:00 UTC
Description** DISPUTED ** 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).

Risk And Classification

Problem Types: CWE-119 | CWE-189

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Gnu Gcc 4.2.0 All All All
Application Gnu Gcc 4.2.1 All All All
Application Gnu Gcc 4.2.2 All All All
Application Gnu Gcc 4.2.3 All All All
Application Gnu Gcc 4.2.4 All All All
Application Gnu Gcc 4.3.0 All All All
Application Gnu Gcc 4.2.0 All All All
Application Gnu Gcc 4.2.1 All All All
Application Gnu Gcc 4.2.2 All All All
Application Gnu Gcc 4.2.3 All All All
Application Gnu Gcc 4.2.4 All All All
Application Gnu Gcc 4.3.0 All All All

References

ReferenceSourceLinkTags
26763 – [4.1/4.2 Regression] wrong final value of induction variable calculated MISC gcc.gnu.org
IBM X-Force Exchange XF exchange.xforce.ibmcloud.com
VU#162289 - C compilers may silently discard some wraparound checks CERT-VN www.kb.cert.org US Government Resource
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

OrganizationPublishedContributorStatement
Red Hat2008-07-24Joshua BressersThe Red Hat Security Response Team is aware of this new gcc behavior and is currently working to determine what impact these changes will have on the source code processed by the compiler. These changes do not affect Red Hat Enterprise Linux 2, 3, 4, or 5.
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report