Advisory
UBUNTU-CVE-2026-97041
Also known as: CVE-2026-97041
Summary
The record has no summary.
Details
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", "//go:cgo_export_static", "//go:cgo_import_static", and "//go:cgo_dynamic_linker" directives, and the linker passed the dynamic linker path using "-Wl,--dynamic-linker,<path>". Furthermore, the two-argument form of "//go:cgo_import_dynamic" (which is permitted in non-cgo Go source files) could overwrite the external symbol name of a symbol already marked for cgo export. A symbol name or dynamic linker path containing a comma or leading "@" could split "-Wl,--export-dynamic-symbol=" or "-Wl,--dynamic-linker," into arbitrary host linker flags or response file arguments. The compiler and linker now reject commas in "//go:cgo_*" symbol and dynamic linker directives, the linker passes "-Wl,--dynamic-linker=<path>", and "cgo_import_dynamic" no longer overwrites symbols exported via "cgo_export_dynamic" or "cgo_export_static".
Severity
Not rated by the source.
Dates
- Published
- 2026-11-12 00:00 UTC
- Modified
- 2026-11-12 23:49 UTC
Affected packages and fixes
| Package | System | Fix |
|---|---|---|
| golang-1.10 | Debian packages (deb) · Ubuntu 14.04 | No fixed version is listed. |
| golang-1.10 | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| golang-1.6 | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| golang-1.10 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| golang-1.8 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| golang-1.9 | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| golang-1.13 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.14 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.18 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.20 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| golang-1.17 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.18 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.20 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.24 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.25 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| golang-1.21 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.22 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.24 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.25 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| golang-1.27 | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| golang-1.23 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| golang-1.24 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| golang-1.25 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| golang-1.26 | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2026-97041
- https://www.cve.org/CVERecord?id=CVE-2026-97041
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ
- https://github.com/golang/go/issues/82569
- https://github.com/golang/go/commit/55515b6fe4e0a74d103b565771dcd656c95da798
- https://github.com/golang/go/commit/820b5f3d5ee97e2ea6e7f7fc2d0967fb074aa610
- https://go.dev/cl/862154
- https://go.dev/issue/82569
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6850
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0