Lucene search

K
gentooGentoo FoundationGLSA-202409-22
HistorySep 24, 2024 - 12:00 a.m.

GCC: Flawed Code Generation

2024-09-2400:00:00
Gentoo Foundation
security.gentoo.org
2
gcc
flawed code generation
vulnerability
power9 backend
random number generator

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

AI Score

6.8

Confidence

Low

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
OSVersionArchitecturePackageVersionFilename
Gentooanyppcsys-devel/gcc< 10.0UNKNOWN
Gentooanysys-devel/gcc< 10.0UNKNOWN
Gentooanyppc64sys-devel/gcc< 10.0UNKNOWN

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

AI Score

6.8

Confidence

Low