Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[26.1 backport] update to go1.21.11, Alpine 3.20 #5118

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

thaJeztah
Copy link
Member

go1.21.11 (released 2024-06-04) includes security fixes to the archive/zip and net/netip packages, as well as bug fixes to the compiler, the go command, the runtime, and the os package. See the Go 1.21.11 milestone on our issue tracker for details;

From the security announcement;

We have just released Go versions 1.22.4 and 1.21.11, minor point releases. These minor releases include 2 security fixes following the security policy:

  • archive/zip: mishandling of corrupt central directory record

    The archive/zip package's handling of certain types of invalid zip files
    differed from the behavior of most zip implementations. This misalignment
    could be exploited to create an zip file with contents that vary depending
    on the implementation reading the file. The archive/zip package now rejects
    files containing these errors.

    Thanks to Yufan You for reporting this issue.

    This is CVE-2024-24789 and Go issue https://go.dev/issue/66869.

  • net/netip: unexpected behavior from Is methods for IPv4-mapped IPv6 addresses

    The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected
    for IPv4-mapped IPv6 addresses, returning false for addresses which would
    return true in their traditional IPv4 forms.

    Thanks to Enze Wang of Alioth and Jianjun Chen of Zhongguancun Lab
    for reporting this issue.

    This is CVE-2024-24790 and Go issue https://go.dev/issue/67680.

- What I did

- How I did it

- How to verify it

- Description for the changelog

update go runtime to go1.21.11, which includes fixes for CVE-2024-24789, CVE-2024-24790

- A picture of a cute animal (not mandatory but encouraged)

Update to the current version of Alpine, which is also the default for
the golang:alpine image

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit e70f685)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
go1.21.11 (released 2024-06-04) includes security fixes to the archive/zip
and net/netip packages, as well as bug fixes to the compiler, the go command,
the runtime, and the os package. See the Go 1.21.11 milestone on our issue
tracker for details;

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

From the security announcement;

We have just released Go versions 1.22.4 and 1.21.11, minor point releases.
These minor releases include 2 security fixes following the security policy:

- archive/zip: mishandling of corrupt central directory record

  The archive/zip package's handling of certain types of invalid zip files
  differed from the behavior of most zip implementations. This misalignment
  could be exploited to create an zip file with contents that vary depending
  on the implementation reading the file. The archive/zip package now rejects
  files containing these errors.

  Thanks to Yufan You for reporting this issue.

  This is CVE-2024-24789 and Go issue https://go.dev/issue/66869.

- net/netip: unexpected behavior from Is methods for IPv4-mapped IPv6 addresses

  The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected
  for IPv4-mapped IPv6 addresses, returning false for addresses which would
  return true in their traditional IPv4 forms.

  Thanks to Enze Wang of Alioth and Jianjun Chen of Zhongguancun Lab
  for reporting this issue.

  This is CVE-2024-24790 and Go issue https://go.dev/issue/67680.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 630e1d3)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.34%. Comparing base (5dab297) to head (0576b3d).

Additional details and impacted files
@@            Coverage Diff             @@
##             26.1    #5118      +/-   ##
==========================================
- Coverage   61.35%   61.34%   -0.01%     
==========================================
  Files         298      295       -3     
  Lines       20712    20707       -5     
==========================================
- Hits        12707    12702       -5     
+ Misses       7103     7102       -1     
- Partials      902      903       +1     

@thaJeztah thaJeztah merged commit a61a0c3 into docker:26.1 Jun 4, 2024
100 checks passed
@thaJeztah thaJeztah deleted the 26.1_backport_bump_go1.21.11 branch June 4, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants