CVE-2026-97034: cmd/go - reject GCC spec files (specs, .spec) in -L,
-isysroot and -Wl,-syslibroot directories, and in the working and package
directories when -fopenmp, -fopenacc or -fsanitize with -static or
-static-lib is passed, and reject -fsanitize= values starting with @ or -,
preventing an untrusted spec file from running code at build time
CVE-2026-97038: cmd/go - check .syso files, direct linker inputs and
libraries in -L directories for GNU ld implicit linker scripts, COFF
.drectve directives, Mach-O LC_LINKER_OPTION commands and LTO IR sections,
and disallow -l: and :, = or path separators in -l names, preventing
code execution at link time
CVE-2026-97039: cmd/go - remove --with-path= and --personality= from the
pkg-config flag allowlist, disallow a leading = or $ in --define-variable=
values, reject .pc files and paths as pkg-config package names, and check
CGO_CPPFLAGS for flags not compatible with internal linking
CVE-2026-97040: cmd/go, cmd/link - reject .syso files that are Go objects
or have an unrecognized format, preventing unchecked cgo directives from
being injected through them, and keep the .syso suffix when long archive
member names are truncated
CVE-2026-97043: cmd/go, cmd/compile - unquote //go:cgo_ldflag,
//go:cgo_dynamic_linker and //go:cgo_import_dynamic strings with
strconv.Unquote and handle escaped quotes in pragma fields, so quoted
linker flags can no longer bypass checkLinkerFlags, and bound the cgo
LDFLAGS removal loop to prevent an out-of-range panic