gcc 4.2.0 through 4.3.0 in GNU Compiler Collection, when casts are not used, considers…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- No fix listed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA. Impact type from CWE-119 and the CVSS impact.
Summary
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)
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gnu:gcc:4.2.0:*:*:*:*:*:*:* | 4.2.0 | Vulnerable | GNU |
| cpe:2.3:a:gnu:gcc:4.2.1:*:*:*:*:*:*:* | 4.2.1 | Vulnerable | GNU |
| cpe:2.3:a:gnu:gcc:4.2.2:*:*:*:*:*:*:* | 4.2.2 | Vulnerable | GNU |
| cpe:2.3:a:gnu:gcc:4.2.3:*:*:*:*:*:*:* | 4.2.3 | Vulnerable | GNU |
| cpe:2.3:a:gnu:gcc:4.2.4:*:*:*:*:*:*:* | 4.2.4 | Vulnerable | GNU |
| cpe:2.3:a:gnu:gcc:4.3.0:*:*:*:*:*:*:* | 4.3.0 | Vulnerable | GNU |
- cpe:2.3:a:gnu:gcc:4.2.0:*:*:*:*:*:*:* Versions 4.2.0 Vulnerable ·GNU
- cpe:2.3:a:gnu:gcc:4.2.1:*:*:*:*:*:*:* Versions 4.2.1 Vulnerable ·GNU
- cpe:2.3:a:gnu:gcc:4.2.2:*:*:*:*:*:*:* Versions 4.2.2 Vulnerable ·GNU
- cpe:2.3:a:gnu:gcc:4.2.3:*:*:*:*:*:*:* Versions 4.2.3 Vulnerable ·GNU
- cpe:2.3:a:gnu:gcc:4.2.4:*:*:*:*:*:*:* Versions 4.2.4 Vulnerable ·GNU
- cpe:2.3:a:gnu:gcc:4.3.0:*:*:*:*:*:*:* Versions 4.3.0 Vulnerable ·GNU
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2008-1685
- 2026-10-03 Alias added: GHSA-6pf5-463c-qv74
References
Advisory 1
More GNU Gcc vulnerabilities
- TI-2023-03747 GCC's-fstack-protector fails to guard dynamically-sized local variables on AArch64 CVSS 3.1MEDIUM 4.8
- TI-2018-09258 stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU… CVSS 3.0HIGH 8.1
- TI-2019-11913 The POWER9 backend in GNU Compiler Collection (GCC) before version 10 could optimize… CVSS 3.1HIGH 7.5
- TI-2008-01316 gcc 4.3.x does not generate a cld instruction while compiling functions used for string… CVSS 2.0HIGH 7.5
- TI-2021-15306 GCC c++filt v2.26 was discovered to contain a use-after-free vulnerability via the component cplus-dem.c. CVSS 3.1HIGH 7.8
- TI-2000-01207 The -ftrapv compiler option in gcc and g++ 3.3.3 and earlier does not handle all types of… CVSS 2.0HIGH 7.5
Sources
- CVE-2008-1685 · CVE Program
- CVE-2008-1685 · NVD
- FIRST EPSS
- GHSA-6pf5-463c-qv74 · GitHub Advisory Database · CC BY 4.0
- CVE-2008-1685 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences