Back
CVE-2006-1902
fold_binary in fold-const.c in GNU Compiler Collection (gcc) 4.1 improperly handles pointer overflow when folding a certain expr…
Low2.1EPSS 0.43%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
fold_binary in fold-const.c in GNU Compiler Collection (gcc) 4.1 improperly handles pointer overflow when folding a certain expr comparison to a corresponding offset comparison in cases other than EQ_EXPR and NE_EXPR, which might introduce buffer overflow vulnerabilities into applications that could be exploited by context-dependent attackers.NOTE: the vendor states that the essence of the issue is "not correctly interpreting an offset to a pointer as a signed value."
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Low2.1 | AV:L/AC:L/Au:N/C:N/I:P/A:N |
- EPSS (exploitation in 30 days)
- 0.43% · top 63% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 2.1.
Weakness
Affected products
n/a
- affected n/a
References (9)
- 20060418 Re: gcc 4.1 bug miscompiles pointer range checks, may place you at risk (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 20060418 RE: gcc 4.1 bug miscompiles pointer range checks, may place you at risk (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- 20060418 Re: gcc 4.1 bug miscompiles pointer range checks, may place you at risk (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356896 (opens in a new tab)x_refsource_MISCx_transferred
- 20060417 gcc 4.1 bug miscompiles pointer range checks, may place you at risk (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- [gcc-bugs] 20060417 [Bug c/27180] New: pointer arithmetic overflow handling broken (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://gcc.gnu.org/viewcvs/branches/gcc-4_1-branch/gcc/fold-const.c?r1=110549&r2=112698&pathrev=112698&diff_format=h (opens in a new tab)x_refsource_CONFIRMx_transferred
- [gcc-bugs] 20060417 [Bug middle-end/27180] New: pointer arithmetic overflow handling broken (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2006-1902)Record last updated .