{"id":"CVE-2006-1902","sourceIdentifier":"cve@mitre.org","published":"2006-04-20T10:02:00.000","lastModified":"2026-06-16T22:23:54.593","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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.\""}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:N/I:P/A:N","baseScore":2.1,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"},"baseSeverity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-119"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:gcc:4.1:*:*:*:*:*:*:*","matchCriteriaId":"CD2441A8-8FEE-4F96-BB88-3965C747A78B"}]}]}],"references":[{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356896","source":"cve@mitre.org"},{"url":"http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763","source":"cve@mitre.org"},{"url":"http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg01297.html","source":"cve@mitre.org"},{"url":"http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg01298.html","source":"cve@mitre.org"},{"url":"http://gcc.gnu.org/viewcvs/branches/gcc-4_1-branch/gcc/fold-const.c?r1=110549&r2=112698&pathrev=112698&diff_format=h","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/431184/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/431245/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/431297/100/0/threaded","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/archive/1/431319/100/0/threaded","source":"cve@mitre.org"},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356896","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg01297.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg01298.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://gcc.gnu.org/viewcvs/branches/gcc-4_1-branch/gcc/fold-const.c?r1=110549&r2=112698&pathrev=112698&diff_format=h","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/431184/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/431245/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/431297/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/archive/1/431319/100/0/threaded","source":"af854a3a-2127-422b-91ae-364da2661108"}]}