Summary
This update for go1.26 fixes the following issue:
Security issues fixed:
- CVE-2026-97033: `cmd/go`: unexpected code execution via `--sysroot`, `-target`, `-isysroot`, `-Wl,-syslibroot`, and
`-x cgo` flags (bsc#1289978).
- CVE-2026-97034: `cmd/go`: arbitrary command execution via GCC spec files in `cgo` linker search directories
(bsc#1289979).
- CVE-2026-97035: `cmd/go`: unexpected code execution and arbitrary file write via Clang `-gen-*` and GCC `-gnat*`
flags in `cgo` (bsc#1289980).
- CVE-2026-97036: `cmd/go`: arbitrary code execution during build on darwin via `-l to_library` in `cgo` (bsc#1289981).
- CVE-2026-97037: `cmd/go`: linker script injection via split `-Wl,` flags and Darwin or symbol linker flags in `cgo`
(bsc#1289982).
- CVE-2026-97038: `cmd/go`: arbitrary code execution via crafted `.syso` files and `cgo` linker input files
(bsc#1289983).
- CVE-2026-97039: `cmd/go`: flag sanitization bypass via `#cgo pkg-config:` directives (bsc#1289984).
- CVE-2026-97040: `cmd/go`, `cmd/link`: `cgo` directive injection via `.syso` files disguised as Go object files
(bsc#1289985).
- CVE-2026-97041: `cmd/compile`, `cmd/link`: host linker flag injection via `//go:cgo_*` directives (bsc#1289986).
- CVE-2026-97042: `cmd/cgo`, `cmd/compile`, `cmd/link`: linker flag injection via `cgo_import_dynamic` and PE DLL
names (bsc#1289987).
- CVE-2026-97043: `cmd/go`, `cmd/compile`: unexpected code execution via escaped quotes in `//go:cgo_ldflag`
(bsc#1289988).
- CVE-2026-97054: `net/http`: HTTP/1 server crash due to `MaxBytesReader` header race (bsc#1289989).
Changes for go1.26:
Update to version go1.26.11 (bsc#1255111):
- go#81865 `cmd/compile`: `branchelim` optimization can eliminate result of store
- go#81869 `cmd/compile`: generic shift-by-constant canonicalization gives `Const64` the wrong type
- go#81926 `cmd/asm`: amd64 assembler loops forever on a forward jump to a labelled `PCALIGN` when a branch needs
widening
- go#81946 `net/http`: backport fix to protect against middleware changing server response body
- go#82022 `net`: `Dialer.Dial{TCP,UDP,IP}` incorrectly treats invalid addresses as `::`
- go#82149 `runtime`: linux/mips `time64` nanosecond layout causes busy waits and empty CPU profiles
- go#82333 `cmd/dist`: `GOFIPS140` bootstrap from Go 1.26 fails
- go#82626 `crypto/fips140`: minor compliance improvements
- go#82642 `cmd/compile`: ICE on 386 when inlining nested bit rotations (`Int64Lo` not lowered)
Fixed packages 11
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-ESPOS | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-LTSS | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-ESPOS | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-LTSS | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLES 15 SP7 Linux Enterprise Module for Development Tools 15 SP7 | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLES 15 SP4 Linux Enterprise Server 15 SP4-LTSS | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLES 15 SP5 Linux Enterprise Server 15 SP5-LTSS | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLES 15 SP6 Linux Enterprise Server 15 SP6-LTSS | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLES for SAP 15 SP4 Linux Enterprise Server for SAP Applications 15 SP4 | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLES for SAP 15 SP5 Linux Enterprise Server for SAP Applications 15 SP5 | go1.26 | 1.26.11-150000.1.39.1 |
| SUSE · SLES for SAP 15 SP6 Linux Enterprise Server for SAP Applications 15 SP6 | go1.26 | 1.26.11-150000.1.39.1 |
Vulnerabilities 12
-
Critical 9.8
Cgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/link
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,…
-
High 8.8
Unexpected code execution via --sysroot, -target, -isysroot, -Wl,-syslibroot, and -x cgo flags in cmd/go
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 …
-
High 8.8
Arbitrary command execution via GCC spec files in cgo linker search directories in cmd/go
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 l…
-
High 8.8
Unexpected code execution and arbitrary file write via Clang -gen-* and GCC -gnat* flags in cgo in cmd/go
When using Clang or GCC, building a malicious package that uses cgo could cause unexpected code execution at build time or write files to arbitrary directories via "-gen-*" or "-gnat*" flags in "#cgo" directives. The "-g*" wildcard in the compiler and linker …
-
High 8.8
Arbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go
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_librar…
-
High 8.8
Linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo in cmd/go
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"…
-
High 8.8
Arbitrary code execution via crafted .syso files and cgo linker input files in cmd/go
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 files—including ".syso" files, direct object or library inputs in "#cgo LDFLAGS", and libraries…
-
High 8.8
Host linker flag injection via //go:cgo_* directives in cmd/compile and cmd/link
Building a malicious package containing "//go:cgo_*" compiler directives could inject arbitrary flags into the external linker invocation on ELF platforms. The compiler and linker did not reject commas in "//go:cgo_import_dynamic", "//go:cgo_export_dynamic", …
-
High 8.8
Linker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/link
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_…
-
High 8.8
Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile
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.…
-
High 8.3
Flag sanitization bypass via "#cgo pkg-config:" directives in cmd/go
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 "…
-
Medium 5.9
HTTP/1 server crash due to MaxBytesReader header race in net/http
For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes …
References
-
report
https://bugzilla.suse.com/1255111
-
report
https://bugzilla.suse.com/1289978
-
report
https://bugzilla.suse.com/1289979
-
report
https://bugzilla.suse.com/1289980
-
report
https://bugzilla.suse.com/1289981
-
report
https://bugzilla.suse.com/1289982
-
report
https://bugzilla.suse.com/1289983
-
report
https://bugzilla.suse.com/1289984
-
report
https://bugzilla.suse.com/1289985
-
report
https://bugzilla.suse.com/1289986
-
report
https://bugzilla.suse.com/1289987
-
report
https://bugzilla.suse.com/1289988
-
report
https://bugzilla.suse.com/1289989
-
web
https://www.suse.com/security/cve/CVE-2026-97033
-
web
https://www.suse.com/security/cve/CVE-2026-97034
-
web
https://www.suse.com/security/cve/CVE-2026-97035
-
web
https://www.suse.com/security/cve/CVE-2026-97036
-
web
https://www.suse.com/security/cve/CVE-2026-97037
-
web
https://www.suse.com/security/cve/CVE-2026-97038
-
web
https://www.suse.com/security/cve/CVE-2026-97039
-
web
https://www.suse.com/security/cve/CVE-2026-97040
-
web
https://www.suse.com/security/cve/CVE-2026-97041
-
web
https://www.suse.com/security/cve/CVE-2026-97042
-
web
https://www.suse.com/security/cve/CVE-2026-97043
-
web
https://www.suse.com/security/cve/CVE-2026-97054