Description
The -ftrapv compiler option in gcc and g++ 3.3.3 and earlier does not handle all types of integer overflows, which may leave applications vulnerable to vulnerabilities related to overflows.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | gcc-3.3 | 1:3.3.4-1 | — |
References
- VU#540517 third-party-advisory
- [gcc-bugs] 20020506 c/6586: -ftrapv doesn't catch multiplication overflow mailing-list