Skip to content

fold_binary in fold-const.c in GNU Compiler Collection ...

Low severity Unreviewed Published May 1, 2022 to the GitHub Advisory Database • Updated Jan 31, 2023

Package

No package listedSuggest a package

Affected versions

Unknown

Patched versions

Unknown

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."

References

Published by the National Vulnerability Database Apr 20, 2006
Published to the GitHub Advisory Database May 1, 2022
Last updated Jan 31, 2023

Severity

Low

EPSS score

0.061%
(27th percentile)

Weaknesses

CVE ID

CVE-2006-1902

GHSA ID

GHSA-r8fv-8gwf-v44c

Source code

No known source code

Dependabot alerts are not supported on this advisory because it does not have a package from a supported ecosystem with an affected and fixed version.

Learn more about GitHub language support

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.