Advisory

ALSA-2021:4587

Also known as: CVE-2021-42574

Summary

Moderate: gcc security update

Details

The gcc packages provide compilers for C, C++, Java, Fortran, Objective C, and Ada 95 GNU, as well as related support libraries.

Security Fix(es):

  • Developer environment: Unicode's bidirectional (BiDi) override characters can cause trojan source attacks (CVE-2021-42574)

The following changes were introduced in gcc in order to facilitate detection of BiDi Unicode characters:

This update implements a new warning option -Wbidirectional to warn about possibly dangerous bidirectional characters.

There are three levels of warning supported by gcc:
"-Wbidirectional=unpaired", which warns about improperly terminated BiDi contexts. (This is the default.)
"-Wbidirectional=none", which turns the warning off.
"-Wbidirectional=any", which warns about any use of bidirectional characters.

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Severity

Not rated by the source.

Dates

Published
2021-11-10 08:34 UTC
Modified
2026-10-29 11:01 UTC

Affected packages and fixes

12 affected packages; all RPM packages (rpm) · AlmaLinux 8; affected: earlier versions
PackageFix
cppsudo dnf upgrade cpp-8.5.0-4.el8_5.alma
gccsudo dnf upgrade gcc-8.5.0-4.el8_5.alma
gcc-c++sudo dnf upgrade gcc-c++-8.5.0-4.el8_5.alma
gcc-gdb-pluginsudo dnf upgrade gcc-gdb-plugin-8.5.0-4.el8_5.alma
gcc-gfortransudo dnf upgrade gcc-gfortran-8.5.0-4.el8_5.alma
gcc-offload-nvptxsudo dnf upgrade gcc-offload-nvptx-8.5.0-4.el8_5.alma
gcc-plugin-develsudo dnf upgrade gcc-plugin-devel-8.5.0-4.el8_5.alma
libitm-develsudo dnf upgrade libitm-devel-8.5.0-4.el8_5.alma
libquadmath-develsudo dnf upgrade libquadmath-devel-8.5.0-4.el8_5.alma
libstdc++-develsudo dnf upgrade libstdc++-devel-8.5.0-4.el8_5.alma
libstdc++-docssudo dnf upgrade libstdc++-docs-8.5.0-4.el8_5.alma
libstdc++-staticsudo dnf upgrade libstdc++-static-8.5.0-4.el8_5.alma

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: AlmaLinux OSV database · MIT

Sources & licences