Vulnerability Details : CVE-2008-1685
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)
Vulnerability category: Overflow
Exploit prediction scoring system (EPSS) score for CVE-2008-1685
Probability of exploitation activity in the next 30 days: 0.19%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 55 % EPSS Score History EPSS FAQ
CVSS scores for CVE-2008-1685
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source |
---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST |
CWE ids for CVE-2008-1685
-
The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.Assigned by: nvd@nist.gov (Primary)
-
Assigned by: nvd@nist.gov (Primary)
Vendor statements for CVE-2008-1685
-
Red Hat 2008-07-24The 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.
-
https://exchange.xforce.ibmcloud.com/vulnerabilities/41686
GNU Compiler Collection (gcc) weak security CVE-2008-1685 Vulnerability Report
-
http://www.kb.cert.org/vuls/id/162289
VU#162289 - C compilers may silently discard some wraparound checksUS Government Resource
-
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763
26763 – [4.1/4.2 Regression] wrong final value of induction variable calculated
- 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.3.0:*:*:*:*:*:*:*
- 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.2.0:*:*:*:*:*:*:*