Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[release/1.7] Update Go to 1.21.9 and 1.22.2 with net/http security fix#10115

Merged
dmcgowan merged 1 commit into
containerd:release/1.7containerd/containerd:release/1.7from
thaJeztah:1.7_backport_go1.21.9thaJeztah/containerd:1.7_backport_go1.21.9Copy head branch name to clipboard
Apr 23, 2024
Merged

[release/1.7] Update Go to 1.21.9 and 1.22.2 with net/http security fix#10115
dmcgowan merged 1 commit into
containerd:release/1.7containerd/containerd:release/1.7from
thaJeztah:1.7_backport_go1.21.9thaJeztah/containerd:1.7_backport_go1.21.9Copy head branch name to clipboard

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

go1.21.9 (released 2024-04-03) includes a security fix to the net/http package, as well as bug fixes to the linker, and the go/types and net/http packages. See the Go 1.21.9 milestone for more details; https://github.com/golang/go/issues?q=milestone%3AGo1.21.9+label%3ACherryPickApproved

These minor releases include 1 security fixes following the security policy:

  • http2: close connections when receiving too many headers

Maintaining HPACK state requires that we parse and process all HEADERS and CONTINUATION frames on a connection. When a request's headers exceed MaxHeaderBytes, we don't allocate memory to store the excess headers but we do parse them. This permits an attacker to cause an HTTP/2 endpoint to read arbitrary amounts of header data, all associated with a request which is going to be rejected. These headers can include Huffman-encoded data which is significantly more expensive for the receiver to decode than for an attacker to send.

Set a limit on the amount of excess header frames we will process before closing a connection.

Thanks to Bartek Nowotarski (https://nowotarski.info/) for reporting this issue.

This is CVE-2023-45288 and Go issue https://go.dev/issue/65051.

View the release notes for more information:
https://go.dev/doc/devel/release#go1.22.2

(cherry picked from commit 13e6b2b)

go1.21.9 (released 2024-04-03) includes a security fix to the net/http
package, as well as bug fixes to the linker, and the go/types and
net/http packages. See the Go 1.21.9 milestone for more details;
https://github.com/golang/go/issues?q=milestone%3AGo1.21.9+label%3ACherryPickApproved

These minor releases include 1 security fixes following the security policy:

- http2: close connections when receiving too many headers

Maintaining HPACK state requires that we parse and process all HEADERS
and CONTINUATION frames on a connection. When a request's headers exceed
MaxHeaderBytes, we don't allocate memory to store the excess headers but
we do parse them. This permits an attacker to cause an HTTP/2 endpoint
to read arbitrary amounts of header data, all associated with a request
which is going to be rejected. These headers can include Huffman-encoded
data which is significantly more expensive for the receiver to decode
than for an attacker to send.

Set a limit on the amount of excess header frames we will process before
closing a connection.

Thanks to Bartek Nowotarski (https://nowotarski.info/) for reporting this issue.

This is CVE-2023-45288 and Go issue https://go.dev/issue/65051.

View the release notes for more information:
https://go.dev/doc/devel/release#go1.22.2

- https://github.com/golang/go/issues?q=milestone%3AGo1.21.9+label%3ACherryPickApproved
- full diff: golang/go@go1.21.8...go1.21.9

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 13e6b2b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah self-assigned this Apr 23, 2024
@dmcgowan
dmcgowan merged commit d8acdaf into containerd:release/1.7 Apr 23, 2024
@thaJeztah
thaJeztah deleted the 1.7_backport_go1.21.9 branch April 23, 2024 14:19
@dmcgowan dmcgowan changed the title [release/1.7 backport] update to go1.21.9, go1.22.2 [release/1.7] update to go1.21.9, go1.22.2 Apr 24, 2024
@dmcgowan dmcgowan changed the title [release/1.7] update to go1.21.9, go1.22.2 [release/1.7] Update Go to 1.21.9 and 1.22.2 with net/http security fix Apr 24, 2024
@dmcgowan dmcgowan added impact/changelog area/toolchain Build and Release Toolchain labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.