CVE-2008-1685
Summary
| CVE | CVE-2008-1685 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2008-04-06 23:44:00 UTC |
| Updated | 2023-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)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| 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
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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
| Organization | Published | Contributor | Statement |
|---|---|---|---|
| Red Hat | 2008-07-24 | Joshua Bressers | The 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. |
There are currently no legacy QID mappings associated with this CVE.