portage-ng / portage / sys-devel / gcc / 11.5.0
portage-ng glsa
1 advisory reference sys-devel/gcc · none place version 11.5.0 in a vulnerable range
▸ GLSA 202409-22 GCC: Flawed Code Generation this version unaffected normal remote 2024-09-24

A vulnerability has been discovered in GCC, which can lead to flawed code generation.

Announced
2024-09-24
Revised
2024-09-24
Access
remote
Bugs
#719466
Advisory
https://security.gentoo.org/glsa/202409-22

Affected packages

PackageArchVulnerableUnaffected
sys-devel/gccppc ppc64< 10.0>= 10.0

Background

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, Go, D and Modula-2 as well as libraries for these languages (libstdc++,...).

Description

A vulnerability has been discovered in GCC. Please review the CVE identifier referenced below for details.

Impact

The POWER9 backend in GNU Compiler Collection (GCC) could optimize multiple calls of the __builtin_darn intrinsic into a single call, thus reducing the entropy of the random number generator. This occurred because a volatile operation was not specified. For example, within a single execution of a program, the output of every __builtin_darn() call may be the same.

Workaround

There is no known workaround at this time.

Resolution

All GCC users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-devel/gcc-10.0"

And then select it with gcc-config:

# gcc-config latest

In this case, users should also rebuild all affected packages with emerge -e, e.g.:

# emerge --usepkg=n --emptytree @world

References