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
Products affected by CVE-2008-1685
- 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:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2008-1685
0.22%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 61 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2008-1685
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
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 reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.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.
References for CVE-2008-1685
-
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
Jump to