{"id":"CVE-2006-1902","aliases":["EUVD-2006-1902","GHSA-r8fv-8gwf-v44c"],"status":"published","title":"fold_binary in fold-const.c in GNU Compiler Collection (gcc) 4.1 improperly handles pointer...","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.\"","severity":{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","level":"low","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00428,"percentile":0.3736,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-119"],"published":"2006-04-20T10:00:00Z","modified":"2026-06-16T22:23:54Z","products":[{"vendor":"gnu","product":"gcc"}],"references":[{"url":"http://www.securityfocus.com/archive/1/431297/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/431245/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/431319/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356896","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/431184/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg01297.html","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://gcc.gnu.org/viewcvs/branches/gcc-4_1-branch/gcc/fold-const.c?r1=110549\u0026r2=112698\u0026pathrev=112698\u0026diff_format=h","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://gcc.gnu.org/ml/gcc-bugs/2006-04/msg01298.html","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-1902"},{"url":"https://github.com/advisories/GHSA-r8fv-8gwf-v44c"}],"sources":{"cve":[{"id":"CVE-2006-1902","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.\"","status":"published","published":"2006-04-20T10:00:00Z","modified":"2024-08-07T17:27:29.536Z","updated_at":"2026-11-02T14:33:51.835276Z"}],"euvd":[{"id":"EUVD-2006-1902","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.\"","status":"published","published":"2006-04-20T10:00:00Z","modified":"2024-08-07T17:27:29Z","updated_at":"2026-11-03T01:16:03.203363Z"}],"ghsa":[{"id":"GHSA-r8fv-8gwf-v44c","title":"fold_binary in fold-const.c in GNU Compiler Collection (gcc) 4.1 improperly handles pointer...","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.\"","status":"published","published":"2022-05-01T06:54:03Z","modified":"2023-01-31T05:01:06Z","cwes":["CWE-119"],"updated_at":"2026-11-02T14:47:59.599725Z"}],"nvd":[{"id":"CVE-2006-1902","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.\"","status":"published","published":"2006-04-20T10:02:00Z","modified":"2026-06-16T22:23:54.593Z","cvss":[{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:01:02.433957Z"}]}}
