Information Exposure Affecting gcc package, versions [4.1,8.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (72nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GCC-2333701
  • published12 Jan 2022
  • disclosed22 May 2019
  • creditUnknown

Introduced: 22 May 2019

CVE-2018-12886  (opens in a new tab)
CWE-209  (opens in a new tab)

How to fix?

Upgrade gcc to version 8.1 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU Compiler Collection (GCC) 4.1 through 8 (under certain circumstances) generate instruction sequences when targeting ARM targets that spill the address of the stack protector guard, which allows an attacker to bypass the protection of -fstack-protector, -fstack-protector-all, -fstack-protector-strong, and -fstack-protector-explicit against stack overflow by controlling what the stack canary is compared against.

References

CVSS Scores

version 3.1