AlmaLinux 9.2 [TuxCare] Security Update: go-toolset / golang / golang-bin / golang-docs / golang-misc / etc Multiple Vulnerabilities (ALMALINUX9.2:CLSA-2026:1795709502)

critical Nessus Plugin ID 387185

Synopsis

The AlmaLinux host is missing one or more security updates.

Description

The AlmaLinux 9.2 host has packages installed that are affected by multiple vulnerabilities as referenced in the TuxCare ALMALINUX9.2:CLSA-2026:1795709502 advisory.

- When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files (specs or *.spec). When linking with -fopenmp, -fopenacc, or
-fsanitize= in #cgo LDFLAGS, GCC's built-in link spec evaluates %:include(libgomp.spec) or %:include(libsanitizer.spec) and searches for spec files in -L and sysroot directories (including subdirectories and multilib sibling directories such as ../lib64), as well as the working directory when
-fopenmp or -fopenacc is used or when -fsanitize= is combined with -static or -static-lib*. The go command now rejects -L, -isysroot, and -Wl,-syslibroot directories (and the working and package directories when applicable) that contain GCC spec files, and disallows @ and - prefixes in
-fsanitize= compiler flag values. (CVE-2026-97034)

- Building a malicious package containing .syso files or cgo linker inputs could inject arbitrary linker flags or execute arbitrary code at link time. Linker input filesincluding .syso files, direct object or library inputs in #cgo LDFLAGS, and libraries in -L directorieswere passed to the external linker without validating their format or checking for embedded linker options. Across platforms, this allowed executing GNU ld implicit linker scripts disguised as libraries or .syso files (or loaded via
-l:<filename> or -l containing path separators), injecting unallowlisted linker flags via PE/COFF .drectve sections on Windows or Mach-O LC_LINKER_OPTION load commands on Darwin, or invoking LTO plugins via GCC or LLVM LTO intermediate representation sections in ELF, PE/COFF, or Mach-O objects. The go command now verifies that .syso files, direct linker inputs, and libraries in -L directories are valid binary objects or archives that do not contain unallowlisted .drectve directives, LC_LINKER_OPTION load commands, or LTO IR sections, and disallows -l:<filename> and :, =, or path separators in -l flags. (CVE-2026-97038)

- Building a malicious package that uses cgo could bypass #cgo LDFLAGS validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in //go:cgo_ldflag directives. When cmd/cgo generates _cgo_gotypes.go, it quotes each #cgo LDFLAGS argument with strconv.Quote in a //go:cgo_ldflag directive, but cmd/compile and cmd/go parsed those directives by splitting on raw quote characters without handling backslash escapes or unquoting the string. This mismatch allowed disallowed linker flags or unvalidated linker search paths to be smuggled past the go command's flag checks and passed to the external linker. In addition, deduplicating LDFLAGS in the go command could panic with an out-of-bounds slice index when a prefix of the flag list matched near the end of the slice. cmd/compile and cmd/go now properly handle backslash-escaped quotes and unquote //go:cgo_* pragma strings with strconv.Unquote, and the slice bounds check in processCgoOutputs has been fixed. (CVE-2026-97043)

- Building a package containing a crafted .syso file could bypass cgo flag validation and inject arbitrary linker flags when linking. When loading .syso entries from a package archive, the linker only checked for recognized host object headers (ELF, Mach-O, PE, and XCOFF) before falling through to Go object parsing. A .syso file beginning with a go object header was parsed as a Go compiler object, allowing untrusted cgo metadata directives (such as cgo_ldflag or cgo_dynamic_linker) embedded in the .syso file to be passed to the external linker without validation. Additionally, .syso filenames longer than 16 bytes lost their .syso extension when truncated in archive headers, and unrecognized .syso formats forced external linking in pure-Go builds. The linker now rejects .syso files that are not recognized host object formats, and cmd/go and cmd/pack preserve the .syso suffix when truncating long archive member names. (CVE-2026-97040)

- Building a malicious package that uses #cgo pkg-config: directives could load untrusted pkg-config .pc files or inject unvalidated compiler and linker flags. The pkg-config flag allowlist previously permitted
--with-path= and --personality=, allowed --define-variable= values beginning with = or $ (which can rewrite paths in system .pc files into sysroot-prefixed -L= or -L$SYSROOT linker search paths), and allowed package arguments ending in .pc or containing path separators or .., which caused pkg- config to load local .pc files directly from the package directory. In addition, flags returned by pkg- config --cflags in cgoCPPFLAGS were not checked when determining whether internal linking is safe. The go command now disallows --with-path=, --personality=, leading = or $ characters in --define- variable= values, and local .pc paths in #cgo pkg-config: directives, and inspects cgoCPPFLAGS when checking internal linking compatibility. (CVE-2026-97039)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages based on the guidance in TuxCare advisory ALMALINUX9.2:CLSA-2026:1795709502.

See Also

https://cve.tuxcare.com/els/releases/CLSA-2026:1795709502

http://www.nessus.org/u?df997e6a

Plugin Details

Severity: Critical

ID: 387185

File Name: tuxcare_alma_linux_9.2_CLSA-2026-1795709502.nasl

Version: 1.1

Type: Local

Published: 11/27/2026

Updated: 11/27/2026

Supported Sensors: Nessus Agent, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.54

Vendor

Vendor Severity: Important

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-97043

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: CVE-2026-97040

Vulnerability Information

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/AlmaLinux/release, Host/AlmaLinux/rpm-list, Host/OS/extended-third-party

Exploit Ease: No known exploits are available

Patch Publication Date: 11/26/2026

Vulnerability Publication Date: 11/11/2026

Reference Information

CVE: CVE-2026-97034, CVE-2026-97038, CVE-2026-97039, CVE-2026-97040, CVE-2026-97043

CLSA: 2026:1795709502