Fri Oct 7 18:19:31 2022 UTC ()
Pullup ticket #6680 - requested by taca
lang/go119: security fix

Revisions pulled up:
- lang/go/version.mk                                            1.163
- lang/go119/PLIST                                              1.3
- lang/go119/distinfo                                           1.3

---
   Module Name:	pkgsrc
   Committed By:	bsiegert
   Date:		Wed Oct  5 11:20:24 UTC 2022

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

   Log Message:
   Update go119 to 1.19.2

   This minor release includes 3 security fixes following the security policy:

   - archive/tar: unbounded memory consumption when reading headers

     Reader.Read did not set a limit on the maximum size of file headers.
     A maliciously crafted archive could cause Read to allocate unbounded
     amounts of memory, potentially causing resource exhaustion or panics.
     Reader.Read now limits the maximum size of header blocks to 1 MiB.

     Thanks to Adam Korczynski (ADA Logics) and OSS-Fuzz for reporting this issue.

     This is CVE-2022-2879 and Go issue https://go.dev/issue/54853.

   - net/http/httputil: ReverseProxy should not forward unparseable query parameters

     Requests forwarded by ReverseProxy included the raw query parameters from the
     inbound request, including unparseable parameters rejected by net/http. This
     could permit query parameter smuggling when a Go proxy forwards a parameter
     with an unparseable value.

     ReverseProxy will now sanitize the query parameters in the forwarded query
     when the outbound request's Form field is set after the ReverseProxy.Director
     function returns, indicating that the proxy has parsed the query parameters.
     Proxies which do not parse query parameters continue to forward the original
     query parameters unchanged.

     Thanks to Gal Goldstein (Security Researcher, Oxeye) and
     Daniel Abeles (Head of Research, Oxeye) for reporting this issue.

     This is CVE-2022-2880 and Go issue https://go.dev/issue/54663.

   - regexp/syntax: limit memory used by parsing regexps

     The parsed regexp representation is linear in the size of the input,
     but in some cases the constant factor can be as high as 40,000,
     making relatively small regexps consume much larger amounts of memory.

     Each regexp being parsed is now limited to a 256 MB memory footprint.
     Regular expressions whose representation would use more space than that
     are now rejected. Normal use of regular expressions is unaffected.

     Thanks to Adam Korczynski (ADA Logics) and OSS-Fuzz for reporting this issue.

     This is CVE-2022-41715 and Go issue https://go.dev/issue/55949.


(bsiegert)
diff -r1.159.2.1 -r1.159.2.2 pkgsrc/lang/go/version.mk
diff -r1.2 -r1.2.2.1 pkgsrc/lang/go119/PLIST
diff -r1.2 -r1.2.2.1 pkgsrc/lang/go119/distinfo

cvs diff -r1.159.2.1 -r1.159.2.2 pkgsrc/lang/go/version.mk (expand / switch to unified diff)

--- pkgsrc/lang/go/version.mk 2022/10/07 16:34:02 1.159.2.1
+++ pkgsrc/lang/go/version.mk 2022/10/07 18:19:31 1.159.2.2
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1# $NetBSD: version.mk,v 1.159.2.1 2022/10/07 16:34:02 bsiegert Exp $ 1# $NetBSD: version.mk,v 1.159.2.2 2022/10/07 18:19:31 bsiegert Exp $
2 2
3# 3#
4# If bsd.prefs.mk is included before go-package.mk in a package, then this 4# If bsd.prefs.mk is included before go-package.mk in a package, then this
5# file must be included directly in the package prior to bsd.prefs.mk. 5# file must be included directly in the package prior to bsd.prefs.mk.
6# 6#
7.include "go-vars.mk" 7.include "go-vars.mk"
8 8
9GO119_VERSION= 1.19.1 9GO119_VERSION= 1.19.2
10GO118_VERSION= 1.18.7 10GO118_VERSION= 1.18.7
11GO117_VERSION= 1.17.13 11GO117_VERSION= 1.17.13
12GO116_VERSION= 1.16.15 12GO116_VERSION= 1.16.15
13GO110_VERSION= 1.10.8 13GO110_VERSION= 1.10.8
14GO19_VERSION= 1.9.7 14GO19_VERSION= 1.9.7
15GO14_VERSION= 1.4.3 15GO14_VERSION= 1.4.3
16 16
17.include "../../mk/bsd.prefs.mk" 17.include "../../mk/bsd.prefs.mk"
18 18
19.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 070000 19.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 070000
20# 1.9 is the last Go version to support NetBSD 6 20# 1.9 is the last Go version to support NetBSD 6
21GO_VERSION_DEFAULT?= 19 21GO_VERSION_DEFAULT?= 19
22.elif ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 101000 22.elif ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 101000

cvs diff -r1.2 -r1.2.2.1 pkgsrc/lang/go119/PLIST (expand / switch to unified diff)

--- pkgsrc/lang/go119/PLIST 2022/09/06 19:11:13 1.2
+++ pkgsrc/lang/go119/PLIST 2022/10/07 18:19:31 1.2.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.2 2022/09/06 19:11:13 bsiegert Exp $ 1@comment $NetBSD: PLIST,v 1.2.2.1 2022/10/07 18:19:31 bsiegert Exp $
2bin/go${GOVERSSUFFIX} 2bin/go${GOVERSSUFFIX}
3bin/gofmt${GOVERSSUFFIX} 3bin/gofmt${GOVERSSUFFIX}
4go119/CONTRIBUTING.md 4go119/CONTRIBUTING.md
5go119/LICENSE 5go119/LICENSE
6go119/PATENTS 6go119/PATENTS
7go119/README.md 7go119/README.md
8go119/SECURITY.md 8go119/SECURITY.md
9go119/VERSION 9go119/VERSION
10go119/api/README 10go119/api/README
11go119/api/except.txt 11go119/api/except.txt
12go119/api/go1.1.txt 12go119/api/go1.1.txt
13go119/api/go1.10.txt 13go119/api/go1.10.txt
14go119/api/go1.11.txt 14go119/api/go1.11.txt
@@ -950,26 +950,27 @@ go119/src/archive/tar/testdata/gnu-nil-s @@ -950,26 +950,27 @@ go119/src/archive/tar/testdata/gnu-nil-s
950go119/src/archive/tar/testdata/gnu-not-utf8.tar 950go119/src/archive/tar/testdata/gnu-not-utf8.tar
951go119/src/archive/tar/testdata/gnu-sparse-big.tar 951go119/src/archive/tar/testdata/gnu-sparse-big.tar
952go119/src/archive/tar/testdata/gnu-utf8.tar 952go119/src/archive/tar/testdata/gnu-utf8.tar
953go119/src/archive/tar/testdata/gnu.tar 953go119/src/archive/tar/testdata/gnu.tar
954go119/src/archive/tar/testdata/hardlink.tar 954go119/src/archive/tar/testdata/hardlink.tar
955go119/src/archive/tar/testdata/hdr-only.tar 955go119/src/archive/tar/testdata/hdr-only.tar
956go119/src/archive/tar/testdata/invalid-go17.tar 956go119/src/archive/tar/testdata/invalid-go17.tar
957go119/src/archive/tar/testdata/issue10968.tar 957go119/src/archive/tar/testdata/issue10968.tar
958go119/src/archive/tar/testdata/issue11169.tar 958go119/src/archive/tar/testdata/issue11169.tar
959go119/src/archive/tar/testdata/issue12435.tar 959go119/src/archive/tar/testdata/issue12435.tar
960go119/src/archive/tar/testdata/neg-size.tar 960go119/src/archive/tar/testdata/neg-size.tar
961go119/src/archive/tar/testdata/nil-uid.tar 961go119/src/archive/tar/testdata/nil-uid.tar
962go119/src/archive/tar/testdata/pax-bad-hdr-file.tar 962go119/src/archive/tar/testdata/pax-bad-hdr-file.tar
 963go119/src/archive/tar/testdata/pax-bad-hdr-large.tar.bz2
963go119/src/archive/tar/testdata/pax-bad-mtime-file.tar 964go119/src/archive/tar/testdata/pax-bad-mtime-file.tar
964go119/src/archive/tar/testdata/pax-global-records.tar 965go119/src/archive/tar/testdata/pax-global-records.tar
965go119/src/archive/tar/testdata/pax-multi-hdrs.tar 966go119/src/archive/tar/testdata/pax-multi-hdrs.tar
966go119/src/archive/tar/testdata/pax-nil-sparse-data.tar 967go119/src/archive/tar/testdata/pax-nil-sparse-data.tar
967go119/src/archive/tar/testdata/pax-nil-sparse-hole.tar 968go119/src/archive/tar/testdata/pax-nil-sparse-hole.tar
968go119/src/archive/tar/testdata/pax-nul-path.tar 969go119/src/archive/tar/testdata/pax-nul-path.tar
969go119/src/archive/tar/testdata/pax-nul-xattrs.tar 970go119/src/archive/tar/testdata/pax-nul-xattrs.tar
970go119/src/archive/tar/testdata/pax-path-hdr.tar 971go119/src/archive/tar/testdata/pax-path-hdr.tar
971go119/src/archive/tar/testdata/pax-pos-size-file.tar 972go119/src/archive/tar/testdata/pax-pos-size-file.tar
972go119/src/archive/tar/testdata/pax-records.tar 973go119/src/archive/tar/testdata/pax-records.tar
973go119/src/archive/tar/testdata/pax-sparse-big.tar 974go119/src/archive/tar/testdata/pax-sparse-big.tar
974go119/src/archive/tar/testdata/pax.tar 975go119/src/archive/tar/testdata/pax.tar
975go119/src/archive/tar/testdata/small.txt 976go119/src/archive/tar/testdata/small.txt
@@ -11215,27 +11216,31 @@ go119/test/fixedbugs/issue53600.out @@ -11215,27 +11216,31 @@ go119/test/fixedbugs/issue53600.out
11215go119/test/fixedbugs/issue53619.go 11216go119/test/fixedbugs/issue53619.go
11216go119/test/fixedbugs/issue53635.go 11217go119/test/fixedbugs/issue53635.go
11217go119/test/fixedbugs/issue53653.go 11218go119/test/fixedbugs/issue53653.go
11218go119/test/fixedbugs/issue53653.out 11219go119/test/fixedbugs/issue53653.out
11219go119/test/fixedbugs/issue53702.go 11220go119/test/fixedbugs/issue53702.go
11220go119/test/fixedbugs/issue5373.go 11221go119/test/fixedbugs/issue5373.go
11221go119/test/fixedbugs/issue53982.go 11222go119/test/fixedbugs/issue53982.go
11222go119/test/fixedbugs/issue54220.go 11223go119/test/fixedbugs/issue54220.go
11223go119/test/fixedbugs/issue54467.go 11224go119/test/fixedbugs/issue54467.go
11224go119/test/fixedbugs/issue54638.go 11225go119/test/fixedbugs/issue54638.go
11225go119/test/fixedbugs/issue5470.dir/a.go 11226go119/test/fixedbugs/issue5470.dir/a.go
11226go119/test/fixedbugs/issue5470.dir/b.go 11227go119/test/fixedbugs/issue5470.dir/b.go
11227go119/test/fixedbugs/issue5470.go 11228go119/test/fixedbugs/issue5470.go
 11229go119/test/fixedbugs/issue54911.go
11228go119/test/fixedbugs/issue5493.go 11230go119/test/fixedbugs/issue5493.go
 11231go119/test/fixedbugs/issue54991.go
 11232go119/test/fixedbugs/issue55122.go
 11233go119/test/fixedbugs/issue55122b.go
11229go119/test/fixedbugs/issue5515.go 11234go119/test/fixedbugs/issue5515.go
11230go119/test/fixedbugs/issue5581.go 11235go119/test/fixedbugs/issue5581.go
11231go119/test/fixedbugs/issue5607.go 11236go119/test/fixedbugs/issue5607.go
11232go119/test/fixedbugs/issue5609.go 11237go119/test/fixedbugs/issue5609.go
11233go119/test/fixedbugs/issue5614.dir/rethinkgo.go 11238go119/test/fixedbugs/issue5614.dir/rethinkgo.go
11234go119/test/fixedbugs/issue5614.dir/x.go 11239go119/test/fixedbugs/issue5614.dir/x.go
11235go119/test/fixedbugs/issue5614.dir/y.go 11240go119/test/fixedbugs/issue5614.dir/y.go
11236go119/test/fixedbugs/issue5614.go 11241go119/test/fixedbugs/issue5614.go
11237go119/test/fixedbugs/issue5698.go 11242go119/test/fixedbugs/issue5698.go
11238go119/test/fixedbugs/issue5704.go 11243go119/test/fixedbugs/issue5704.go
11239go119/test/fixedbugs/issue5753.go 11244go119/test/fixedbugs/issue5753.go
11240go119/test/fixedbugs/issue5755.dir/a.go 11245go119/test/fixedbugs/issue5755.dir/a.go
11241go119/test/fixedbugs/issue5755.dir/main.go 11246go119/test/fixedbugs/issue5755.dir/main.go
@@ -12070,26 +12075,27 @@ go119/test/typeparam/issue52026.go @@ -12070,26 +12075,27 @@ go119/test/typeparam/issue52026.go
12070go119/test/typeparam/issue52117.dir/a.go 12075go119/test/typeparam/issue52117.dir/a.go
12071go119/test/typeparam/issue52117.dir/b.go 12076go119/test/typeparam/issue52117.dir/b.go
12072go119/test/typeparam/issue52117.go 12077go119/test/typeparam/issue52117.go
12073go119/test/typeparam/issue52124.go 12078go119/test/typeparam/issue52124.go
12074go119/test/typeparam/issue52228.go 12079go119/test/typeparam/issue52228.go
12075go119/test/typeparam/issue52241.go 12080go119/test/typeparam/issue52241.go
12076go119/test/typeparam/issue53254.go 12081go119/test/typeparam/issue53254.go
12077go119/test/typeparam/issue53390.go 12082go119/test/typeparam/issue53390.go
12078go119/test/typeparam/issue53406.go 12083go119/test/typeparam/issue53406.go
12079go119/test/typeparam/issue53419.go 12084go119/test/typeparam/issue53419.go
12080go119/test/typeparam/issue53477.go 12085go119/test/typeparam/issue53477.go
12081go119/test/typeparam/issue53762.go 12086go119/test/typeparam/issue53762.go
12082go119/test/typeparam/issue54135.go 12087go119/test/typeparam/issue54135.go
 12088go119/test/typeparam/issue54225.go
12083go119/test/typeparam/issue54302.dir/a.go 12089go119/test/typeparam/issue54302.dir/a.go
12084go119/test/typeparam/issue54302.dir/main.go 12090go119/test/typeparam/issue54302.dir/main.go
12085go119/test/typeparam/issue54302.go 12091go119/test/typeparam/issue54302.go
12086go119/test/typeparam/list.go 12092go119/test/typeparam/list.go
12087go119/test/typeparam/list2.go 12093go119/test/typeparam/list2.go
12088go119/test/typeparam/listimp.dir/a.go 12094go119/test/typeparam/listimp.dir/a.go
12089go119/test/typeparam/listimp.dir/main.go 12095go119/test/typeparam/listimp.dir/main.go
12090go119/test/typeparam/listimp.go 12096go119/test/typeparam/listimp.go
12091go119/test/typeparam/listimp2.dir/a.go 12097go119/test/typeparam/listimp2.dir/a.go
12092go119/test/typeparam/listimp2.dir/main.go 12098go119/test/typeparam/listimp2.dir/main.go
12093go119/test/typeparam/listimp2.go 12099go119/test/typeparam/listimp2.go
12094go119/test/typeparam/lockable.go 12100go119/test/typeparam/lockable.go
12095go119/test/typeparam/map.go 12101go119/test/typeparam/map.go

cvs diff -r1.2 -r1.2.2.1 pkgsrc/lang/go119/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/go119/distinfo 2022/09/06 19:11:13 1.2
+++ pkgsrc/lang/go119/distinfo 2022/10/07 18:19:31 1.2.2.1
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.2 2022/09/06 19:11:13 bsiegert Exp $ 1$NetBSD: distinfo,v 1.2.2.1 2022/10/07 18:19:31 bsiegert Exp $
2 2
3BLAKE2s (go1.19.1.src.tar.gz) = 58558ab93053577809b2b826edf4e8217a312efcaedbfbff5317beddcd8d4bee 3BLAKE2s (go1.19.2.src.tar.gz) = 09640c7d9fafd3e5a58de1696940e4e5e4102d15d567fff98077c75e7e6afd7f
4SHA512 (go1.19.1.src.tar.gz) = 7e8cf557f05d5a537f9305bb9c19cf8ab9ce640376e5ea97ff0d490b016364936e8dfc129462760c4e817af01fdf09e3f815b88412f9985bb254dfa3167752c0 4SHA512 (go1.19.2.src.tar.gz) = 72901e5eaf1857b22bf62a82690579aa4bd8b8130f16416313d249600c99e1ae3c1451ac5c53138ce41dd39dd72dcf8d0f3592b98f4239754efcf4f8b0103cb4
5Size (go1.19.1.src.tar.gz) = 26527375 bytes 5Size (go1.19.2.src.tar.gz) = 26534465 bytes
6SHA1 (patch-misc_ios_clangwrap.sh) = 0a06403609cb7bce2e6f65444fd322f486761afe 6SHA1 (patch-misc_ios_clangwrap.sh) = 0a06403609cb7bce2e6f65444fd322f486761afe
7SHA1 (patch-src_cmd_dist_util.go) = 2d9c2f59e27672d56f5f1a0e3f9d5101a05546a7 7SHA1 (patch-src_cmd_dist_util.go) = 2d9c2f59e27672d56f5f1a0e3f9d5101a05546a7
8SHA1 (patch-src_crypto_x509_root__bsd.go) = 0b5dead901450967109303f873a2696c65ccac35 8SHA1 (patch-src_crypto_x509_root__bsd.go) = 0b5dead901450967109303f873a2696c65ccac35
9SHA1 (patch-src_crypto_x509_root__solaris.go) = d636a1599ede225ac339388fba2b6e253112d461 9SHA1 (patch-src_crypto_x509_root__solaris.go) = d636a1599ede225ac339388fba2b6e253112d461
10SHA1 (patch-src_syscall_zsysnum__solaris__amd64.go) = ec28a0fa37ba9599ec1651c8e9337a2efc48a26b 10SHA1 (patch-src_syscall_zsysnum__solaris__amd64.go) = ec28a0fa37ba9599ec1651c8e9337a2efc48a26b