Skip to content

Commit 9d9bd10

Browse files
committed
[release/1.5] update to Go 1.18.8 to address CVE-2022-41716
On Windows, syscall.StartProcess and os/exec.Cmd did not properly check for invalid environment variable values. A malicious environment variable value could exploit this behavior to set a value for a different environment variable. For example, the environment variable string "A=B\x00C=D" set the variables "A=B" and "C=D". Thanks to RyotaK (https://twitter.com/ryotkak) for reporting this issue. This is CVE-2022-41716 and Go issue https://go.dev/issue/56284. This Go release also fixes golang/go#56309, a runtime bug which can cause random memory corruption when a goroutine exits with runtime.LockOSThread() set. This fix is necessary to unblock work to replace certain uses of pkg/reexec with unshared OS threads. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent bbba77c commit 9d9bd10

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
go-version: [1.18.7]
23+
go-version: [1.18.8]
2424
os: [ubuntu-18.04, macos-12, windows-2019]
2525

2626
steps:
@@ -46,7 +46,7 @@ jobs:
4646
steps:
4747
- uses: actions/setup-go@v2
4848
with:
49-
go-version: '1.18.7'
49+
go-version: '1.18.8'
5050

5151
- uses: actions/checkout@v2
5252
with:
@@ -72,7 +72,7 @@ jobs:
7272
steps:
7373
- uses: actions/setup-go@v2
7474
with:
75-
go-version: '1.18.7'
75+
go-version: '1.18.8'
7676

7777
- uses: actions/checkout@v2
7878
with:
@@ -104,7 +104,7 @@ jobs:
104104
steps:
105105
- uses: actions/setup-go@v2
106106
with:
107-
go-version: '1.18.7'
107+
go-version: '1.18.8'
108108
- uses: actions/checkout@v2
109109
- run: go install github.com/cpuguy83/go-md2man/[email protected]
110110
- run: make man
@@ -138,7 +138,7 @@ jobs:
138138
steps:
139139
- uses: actions/setup-go@v2
140140
with:
141-
go-version: '1.18.7'
141+
go-version: '1.18.8'
142142
- uses: actions/checkout@v2
143143
- run: |
144144
set -e -x
@@ -195,7 +195,7 @@ jobs:
195195
strategy:
196196
matrix:
197197
os: [ubuntu-18.04, macos-12, windows-2019]
198-
go-version: ['1.18.7']
198+
go-version: ['1.18.8']
199199

200200
steps:
201201
- uses: actions/setup-go@v2
@@ -237,7 +237,7 @@ jobs:
237237
steps:
238238
- uses: actions/setup-go@v2
239239
with:
240-
go-version: '1.18.7'
240+
go-version: '1.18.8'
241241

242242
- uses: actions/checkout@v2
243243
with:
@@ -326,7 +326,7 @@ jobs:
326326
steps:
327327
- uses: actions/setup-go@v2
328328
with:
329-
go-version: '1.18.7'
329+
go-version: '1.18.8'
330330

331331
- uses: actions/checkout@v2
332332

@@ -468,7 +468,7 @@ jobs:
468468
steps:
469469
- uses: actions/setup-go@v2
470470
with:
471-
go-version: '1.18.7'
471+
go-version: '1.18.8'
472472
- uses: actions/checkout@v2
473473
- run: sudo -E PATH=$PATH script/setup/install-gotestsum
474474
- name: Tests

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/setup-go@v2
2020
with:
21-
go-version: '1.18.7'
21+
go-version: '1.18.8'
2222

2323
- uses: actions/checkout@v2
2424
with:
@@ -135,7 +135,7 @@ jobs:
135135
steps:
136136
- uses: actions/setup-go@v2
137137
with:
138-
go-version: '1.18.7'
138+
go-version: '1.18.8'
139139

140140
- uses: actions/checkout@v2
141141
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install Go
6363
uses: actions/setup-go@v2
6464
with:
65-
go-version: '1.18.7'
65+
go-version: '1.18.8'
6666

6767
- name: Set env
6868
shell: bash

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Vagrant.configure("2") do |config|
7777
config.vm.provision "install-golang", type: "shell", run: "once" do |sh|
7878
sh.upload_path = "/tmp/vagrant-install-golang"
7979
sh.env = {
80-
'GO_VERSION': ENV['GO_VERSION'] || "1.18.7",
80+
'GO_VERSION': ENV['GO_VERSION'] || "1.18.8",
8181
}
8282
sh.inline = <<~SHELL
8383
#!/usr/bin/env bash

contrib/Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# docker build -t containerd-test --build-arg RUNC_VERSION=v1.0.0-rc93 -f Dockerfile.test ../
1212

13-
ARG GOLANG_VERSION=1.18.7
13+
ARG GOLANG_VERSION=1.18.8
1414

1515
FROM golang:${GOLANG_VERSION} AS golang-base
1616
RUN mkdir -p /go/src/github.com/containerd/containerd

0 commit comments

Comments
 (0)