pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Thu Dec  8 10:37:26 UTC 2022

Modified Files:
        pkgsrc/lang/go: version.mk
        pkgsrc/lang/go119: PLIST distinfo

Log Message:
Update go119 to 1.19.4 (security).

This minor release includes 2 security fixes following the security policy
<https://go.dev/security>:

- os, net/http: avoid escapes from os.DirFS and http.Dir on Windows

  The os.DirFS function and http.Dir type provide access to a tree of files
  rooted at a given directory. These functions permitted access to Windows
  device files under that root. For example, os.DirFS("C:/tmp").Open("COM1")
  would open the COM1 device.  Both os.DirFS and http.Dir only provide
  read-only filesystem access.

  In addition, on Windows, an os.DirFS for the directory \ (the root of the
  current drive) can permit a maliciously crafted path to escape from the drive
  and access any path on the system.

  The behavior of os.DirFS("") has changed. Previously, an empty root was
  treated equivalently to "/", so os.DirFS("").Open("tmp") would open the path
  "/tmp".  This now returns an error.

  This is CVE-2022-41720 and Go issue https://go.dev/issue/56694.

- net/http: limit canonical header cache by bytes, not entries

  An attacker can cause excessive memory growth in a Go server accepting HTTP/2
  requests.

  HTTP/2 server connections contain a cache of HTTP header keys sent by the
  client. While the total number of entries in this cache is capped, an
  attacker sending very large keys can cause the server to allocate
  approximately 64 MiB per open connection.

  This issue is also fixed in golang.org/x/net/http2, for users manually
  configuring HTTP/2.

  Thanks to Josselin Costanzi for reporting this issue.

  This is CVE-2022-41717 and Go issue https://go.dev/issue/56350.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 pkgsrc/lang/go/version.mk
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/go119/PLIST pkgsrc/lang/go119/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/go/version.mk
diff -u pkgsrc/lang/go/version.mk:1.166 pkgsrc/lang/go/version.mk:1.167
--- pkgsrc/lang/go/version.mk:1.166     Thu Dec  8 10:28:44 2022
+++ pkgsrc/lang/go/version.mk   Thu Dec  8 10:37:25 2022
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.166 2022/12/08 10:28:44 bsiegert Exp $
+# $NetBSD: version.mk,v 1.167 2022/12/08 10:37:25 bsiegert Exp $
 
 #
 # If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -6,7 +6,7 @@
 #
 .include "go-vars.mk"
 
-GO119_VERSION= 1.19.3
+GO119_VERSION= 1.19.4
 GO118_VERSION= 1.18.9
 GO117_VERSION= 1.17.13
 GO116_VERSION= 1.16.15

Index: pkgsrc/lang/go119/PLIST
diff -u pkgsrc/lang/go119/PLIST:1.4 pkgsrc/lang/go119/PLIST:1.5
--- pkgsrc/lang/go119/PLIST:1.4 Tue Nov  1 17:41:11 2022
+++ pkgsrc/lang/go119/PLIST     Thu Dec  8 10:37:26 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2022/11/01 17:41:11 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.5 2022/12/08 10:37:26 bsiegert Exp $
 bin/go${GOVERSSUFFIX}
 bin/gofmt${GOVERSSUFFIX}
 go119/CONTRIBUTING.md
@@ -798,6 +798,7 @@ go119/pkg/${GO_PLATFORM}/internal/poll.a
 go119/pkg/${GO_PLATFORM}/internal/profile.a
 go119/pkg/${GO_PLATFORM}/internal/race.a
 go119/pkg/${GO_PLATFORM}/internal/reflectlite.a
+go119/pkg/${GO_PLATFORM}/internal/safefilepath.a
 go119/pkg/${GO_PLATFORM}/internal/singleflight.a
 go119/pkg/${GO_PLATFORM}/internal/syscall/execenv.a
 go119/pkg/${GO_PLATFORM}/internal/syscall/unix.a
@@ -1543,6 +1544,7 @@ go119/src/cmd/compile/internal/test/issu
 go119/src/cmd/compile/internal/test/lang_test.go
 go119/src/cmd/compile/internal/test/logic_test.go
 go119/src/cmd/compile/internal/test/mulconst_test.go
+go119/src/cmd/compile/internal/test/race.go
 go119/src/cmd/compile/internal/test/reproduciblebuilds_test.go
 go119/src/cmd/compile/internal/test/shift_test.go
 go119/src/cmd/compile/internal/test/ssa_test.go
@@ -6378,6 +6380,10 @@ go119/src/internal/reflectlite/swapper.g
 go119/src/internal/reflectlite/tostring_test.go
 go119/src/internal/reflectlite/type.go
 go119/src/internal/reflectlite/value.go
+go119/src/internal/safefilepath/path.go
+go119/src/internal/safefilepath/path_other.go
+go119/src/internal/safefilepath/path_test.go
+go119/src/internal/safefilepath/path_windows.go
 go119/src/internal/singleflight/singleflight.go
 go119/src/internal/singleflight/singleflight_test.go
 go119/src/internal/syscall/execenv/execenv_default.go
@@ -11233,6 +11239,7 @@ go119/test/fixedbugs/issue55122.go
 go119/test/fixedbugs/issue55122b.go
 go119/test/fixedbugs/issue5515.go
 go119/test/fixedbugs/issue5581.go
+go119/test/fixedbugs/issue55889.go
 go119/test/fixedbugs/issue5607.go
 go119/test/fixedbugs/issue5609.go
 go119/test/fixedbugs/issue56105.go
Index: pkgsrc/lang/go119/distinfo
diff -u pkgsrc/lang/go119/distinfo:1.4 pkgsrc/lang/go119/distinfo:1.5
--- pkgsrc/lang/go119/distinfo:1.4      Tue Nov  1 17:41:11 2022
+++ pkgsrc/lang/go119/distinfo  Thu Dec  8 10:37:26 2022
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2022/11/01 17:41:11 bsiegert Exp $
+$NetBSD: distinfo,v 1.5 2022/12/08 10:37:26 bsiegert Exp $
 
-BLAKE2s (go1.19.3.src.tar.gz) = c602788f22c90df6db30b8a6493ea7ae28068824a64612e415967a47ed87d627
-SHA512 (go1.19.3.src.tar.gz) = 9aa8548597d52455afad8bf3b882eeeb9992814721ff2b9d8ed1f0e1ee0fec74aecd9d4e8c9c00eafbfe690bcdc50f3ad0b00bc4818b87e9d584cce7df97ee76
-Size (go1.19.3.src.tar.gz) = 26535494 bytes
+BLAKE2s (go1.19.4.src.tar.gz) = 2b3038fc8c2c31441b5ddf98b50e5bbc7f7016bf9bae703a2c416468d4abfba6
+SHA512 (go1.19.4.src.tar.gz) = 00866e171d73170583e292439beecdaaee1b8fa907b6ab03013390b0cd7eaebfbe8cb9f9222f1af86933b50602e584677bc3aa25993c02d07a11625a62db263b
+Size (go1.19.4.src.tar.gz) = 26542047 bytes
 SHA1 (patch-misc_ios_clangwrap.sh) = 0a06403609cb7bce2e6f65444fd322f486761afe
 SHA1 (patch-src_cmd_dist_util.go) = 2d9c2f59e27672d56f5f1a0e3f9d5101a05546a7
 SHA1 (patch-src_crypto_x509_root__bsd.go) = 0b5dead901450967109303f873a2696c65ccac35



Home | Main Index | Thread Index | Old Index