Advisory
UBUNTU-CVE-2026-97043
Also known as: CVE-2026-97043
Summary
The record has no summary.
Details
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.
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-97043
- https://www.cve.org/CVERecord?id=CVE-2026-97043
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ
- https://github.com/golang/go/issues/82567
- https://github.com/golang/go/commit/3eb71096ddd9c6fdac2a361be897708ec0d4c3fc
- https://github.com/golang/go/commit/e9bc401e7197f5c0b806b1cd8db52e34c2d26b97
- https://go.dev/cl/862156
- https://go.dev/issue/82567
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6848
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0