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

critical Nessus Plugin ID 391377

Synopsis

The AlmaLinux host is missing one or more security updates.

Description

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

- Building a malicious package that uses cgo could cause arbitrary code execution at build time through several compiler and linker flags permitted in #cgo directives. Specifically, --sysroot in GCC and Clang relocates compiler subprograms, spec files, and CRT startup objects to an attacker-controlled directory; -target in Clang falls back to executing target helper tools from the current working directory when not found in PATH; -isysroot and -Wl,-syslibroot can pass a regular file on disk to GNU ld.bfd, which interprets it as a positional linker script; and -x permitted specifying arbitrary compiler input languages beyond those supported by cgo. --sysroot and -target are now disallowed in #cgo flags, -isysroot and -Wl,-syslibroot are verified not to point to regular files, and -x is restricted to the C, C++, Objective-C, and assembler languages supported by cgo. (CVE-2026-97033)

- On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing -l to_library <path> in a #cgo LDFLAGS directive. The Apple linker recombines the separated arguments -l and to_library into -lto_library, which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows -l followed by to_library in #cgo LDFLAGS, rejects -lazy_library, -lazy_framework, -load_hidden, -library, and -library-path, and checks recombined -l arguments against disallowed linker flags and patterns. (CVE-2026-97036)

- Building a malicious package that uses //go:cgo_import_dynamic or links against a crafted PE object on Windows could pass unsafe library arguments to the external linker. The compiler only checked the first character of the library name in //go:cgo_import_dynamic directives and skipped validation in cgo- generated files. In addition, on Windows, cmd/cgo and cmd/link did not validate imported DLL names extracted from PE object files before emitting -l<name> flags for the external linker, allowing a crafted DLL name containing .. path traversal or special characters to reference arbitrary files on disk. The compiler now validates every character of the library name in //go:cgo_import_dynamic directives (including in cgo-generated files on Windows) and rejects .. path traversal, and cmd/cgo and cmd/link reject PE imported DLL names containing path separators, .., :, or leading - or @.
(CVE-2026-97042)

- Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via #cgo LDFLAGS. Split -Wl, flags that consume a following argument (such as -Wl,-rpath, -Wl,--just-symbols, and -Wl,-undefined) previously accepted a bare second argument without a -Wl, prefix, which the compiler driver passes directly to the linker as a positional input file. Additionally, when using GNU ld.bfd, flags such as -framework, -Wl,-framework,
-Wl,-undefined, -Wl,--just-symbols, -Wl,-R, -Wl,-subsystem, and (on non-Darwin platforms)
-Wl,-sectcreate could cause ld.bfd to interpret their arguments as linker scripts if they named a regular file on disk. The go command now requires a -Wl, prefix on the second token of split -Wl, flags (except -Wl,-R), verifies that these flags do not reference linker script files, and disallows bare -Wl,--warn-backrefs-exclude. (CVE-2026-97037)

- 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)

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.6:CLSA-2026:1796205776.

See Also

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

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

Plugin Details

Severity: Critical

ID: 391377

File Name: tuxcare_alma_linux_9.6_CLSA-2026-1796205776.nasl

Version: 1.1

Type: Local

Published: 12/2/2026

Updated: 12/2/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: Medium

Base Score: 4.4

Temporal Score: 3.3

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

CVSS Score Source: CVE-2026-97033

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: 12/2/2026

Vulnerability Publication Date: 11/11/2026

Reference Information

CVE: CVE-2026-97033, CVE-2026-97034, CVE-2026-97035, CVE-2026-97036, CVE-2026-97037, CVE-2026-97038, CVE-2026-97039, CVE-2026-97040, CVE-2026-97041, CVE-2026-97042, CVE-2026-97043

CLSA: 2026:1796205776