# ALBA-2020:1354: gcc-toolset-9-binutils bug fix update

> An update provides a workaround for the Intel JCC bug in binutils, requiring recompilation with specific flags to mitigate incorrect instruction execution.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Not stated
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 Apr 2020

## What is ALBA-2020:1354?

ALBA-2020:1354 is a vulnerability in gcc-toolset-9-binutils, published on 7 Apr 2020. 

### Official description

GCC Toolset is a compiler toolset that provides recent versions of development
tools. GCC Toolset is an Application Stream packaged as a Software Collection.

The binutils packages provide a collection of binary utilities for the manipulation of object code in various object file formats. It includes the ar, as, gprof, ld, nm, objcopy, objdump, ranlib, readelf, size, strings, strip, and addr2line utilities.

Bug Fix(es):

* Certain Intel CPUs are affected by the Jump Conditional Code (JCC) bug causing machine instructions to be executed incorrectly. Consequently, the affected CPUs might not execute programs properly. The full fix involves updating the microcode of vulnerable CPUs, which can cause a performance degradation. This update enables a workaround in the assembler that helps to mitigate the performance loss. The workaround is not enabled by default.

To apply the workaround, recompile a program using GCC with the "-Wa,-mbranches-within-32B-boundaries" command-line option. A program recompiled with this command-line option will not be affected by JCC flaw, but the microcode update is still necessary in order to fully protect a system.

Note that applying the workaround will increase the size of the program and there can still be a slight performance decrease, although it should be less than it would have been without the recompilation. (BZ#1783958)

## Which versions are affected by ALBA-2020:1354?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `gcc-toolset-9-binutils` | AlmaLinux:8 | All versions | 2.32-17.el8_1 |
| `gcc-toolset-9-binutils-devel` | AlmaLinux:8 | All versions | 2.32-17.el8_1 |

## How do I fix ALBA-2020:1354?

Apply the vendor's patch.

## Is ALBA-2020:1354 being exploited?

There is no known exploitation of ALBA-2020:1354 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for ALBA-2020:1354 and fix it if it is affected.

What it is: ALBA-2020:1354 is a vulnerability in gcc-toolset-9-binutils, published on 7 Apr 2020. 
Exploitation: There is no known exploitation of ALBA-2020:1354 in the wild and no public exploit code.

Affected product: gcc-toolset-9-binutils. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/ALBA-2020-1354/ (Markdown: https://insights.sbomify.com/ALBA-2020-1354/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/ALBA-2020:1354

---
From sbomify Insights: https://insights.sbomify.com/ALBA-2020-1354/
Summaries are generated and may contain mistakes; the official description above is the record.
