Ubuntu CVE Tracker
UBUNTU-CVE-2026-97036
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:14.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:16.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:16.04:LTS | golang-1.6 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | golang-1.18 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.16 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.18 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.8 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.9 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.14 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | golang-1.16 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.18 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.20 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.21 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.22 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.17 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.18 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.20 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.21 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.22 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.23 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.24 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.25 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.26 | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:24.04:LTS | golang-1.21 | All versions, no fix listed |
| Ubuntu:24.04:LTS | golang-1.22 | All versions, no fix listed |
| Ubuntu:24.04:LTS | golang-1.23 | All versions, no fix listed |
| Ubuntu:24.04:LTS | golang-1.24 | All versions, no fix listed |
| Ubuntu:24.04:LTS | golang-1.25 | All versions, no fix listed |
| Ubuntu:24.04:LTS | golang-1.26 | All versions, no fix listed |
| Ubuntu:26.10 | golang-1.26 | All versions, no fix listed |
| Ubuntu:26.10 | golang-1.27 | All versions, no fix listed |
| Ubuntu:26.04:LTS | golang-1.23 | All versions, no fix listed |
| Ubuntu:26.04:LTS | golang-1.24 | All versions, no fix listed |
| Ubuntu:26.04:LTS | golang-1.25 | All versions, no fix listed |
| Ubuntu:26.04:LTS | golang-1.26 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2026-97036
- https://www.cve.org/CVERecord?id=CVE-2026-97036
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ
- https://github.com/golang/go/issues/82574
- https://github.com/golang/go/commit/0edfcc8731871d158162c4b73efded994fdcc3bc
- https://github.com/golang/go/commit/0e2c832156565cf52d1f5ffb578039f747884d64
- https://go.dev/cl/862149
- https://go.dev/issue/82574
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6855