Fri Oct 7 16:34:03 2022 UTC ()
Pullup ticket #6679 - requested by taca
lang/go118: security fix

Revisions pulled up:
- lang/go/version.mk                                            1.162
- lang/go118/PLIST                                              1.8
- lang/go118/distinfo                                           1.8

---
   Module Name:	pkgsrc
   Committed By:	bsiegert
   Date:		Wed Oct  5 09:51:52 UTC 2022

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

   Log Message:
   go118: update to 1.18.7

   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 -r1.159.2.1 pkgsrc/lang/go/version.mk
diff -r1.7 -r1.7.2.1 pkgsrc/lang/go118/PLIST
diff -r1.7 -r1.7.2.1 pkgsrc/lang/go118/distinfo

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

--- pkgsrc/lang/go/version.mk 2022/09/12 12:16:05 1.159
+++ pkgsrc/lang/go/version.mk 2022/10/07 16:34:02 1.159.2.1
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1# $NetBSD: version.mk,v 1.159 2022/09/12 12:16:05 jperkin Exp $ 1# $NetBSD: version.mk,v 1.159.2.1 2022/10/07 16:34:02 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.1
10GO118_VERSION= 1.18.6 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
23# go 1.11 removed support for osx 10.8 and 10.9 23# go 1.11 removed support for osx 10.8 and 10.9

cvs diff -r1.7 -r1.7.2.1 pkgsrc/lang/go118/PLIST (expand / switch to unified diff)

--- pkgsrc/lang/go118/PLIST 2022/09/07 06:36:33 1.7
+++ pkgsrc/lang/go118/PLIST 2022/10/07 16:34:03 1.7.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.7 2022/09/07 06:36:33 bsiegert Exp $ 1@comment $NetBSD: PLIST,v 1.7.2.1 2022/10/07 16:34:03 bsiegert Exp $
2bin/go${GOVERSSUFFIX} 2bin/go${GOVERSSUFFIX}
3bin/gofmt${GOVERSSUFFIX} 3bin/gofmt${GOVERSSUFFIX}
4go118/AUTHORS 4go118/AUTHORS
5go118/CONTRIBUTING.md 5go118/CONTRIBUTING.md
6go118/CONTRIBUTORS 6go118/CONTRIBUTORS
7go118/LICENSE 7go118/LICENSE
8go118/PATENTS 8go118/PATENTS
9go118/README.md 9go118/README.md
10go118/SECURITY.md 10go118/SECURITY.md
11go118/VERSION 11go118/VERSION
12go118/api/README 12go118/api/README
13go118/api/except.txt 13go118/api/except.txt
14go118/api/go1.1.txt 14go118/api/go1.1.txt
@@ -923,26 +923,27 @@ go118/src/archive/tar/testdata/gnu-nil-s @@ -923,26 +923,27 @@ go118/src/archive/tar/testdata/gnu-nil-s
923go118/src/archive/tar/testdata/gnu-not-utf8.tar 923go118/src/archive/tar/testdata/gnu-not-utf8.tar
924go118/src/archive/tar/testdata/gnu-sparse-big.tar 924go118/src/archive/tar/testdata/gnu-sparse-big.tar
925go118/src/archive/tar/testdata/gnu-utf8.tar 925go118/src/archive/tar/testdata/gnu-utf8.tar
926go118/src/archive/tar/testdata/gnu.tar 926go118/src/archive/tar/testdata/gnu.tar
927go118/src/archive/tar/testdata/hardlink.tar 927go118/src/archive/tar/testdata/hardlink.tar
928go118/src/archive/tar/testdata/hdr-only.tar 928go118/src/archive/tar/testdata/hdr-only.tar
929go118/src/archive/tar/testdata/invalid-go17.tar 929go118/src/archive/tar/testdata/invalid-go17.tar
930go118/src/archive/tar/testdata/issue10968.tar 930go118/src/archive/tar/testdata/issue10968.tar
931go118/src/archive/tar/testdata/issue11169.tar 931go118/src/archive/tar/testdata/issue11169.tar
932go118/src/archive/tar/testdata/issue12435.tar 932go118/src/archive/tar/testdata/issue12435.tar
933go118/src/archive/tar/testdata/neg-size.tar 933go118/src/archive/tar/testdata/neg-size.tar
934go118/src/archive/tar/testdata/nil-uid.tar 934go118/src/archive/tar/testdata/nil-uid.tar
935go118/src/archive/tar/testdata/pax-bad-hdr-file.tar 935go118/src/archive/tar/testdata/pax-bad-hdr-file.tar
 936go118/src/archive/tar/testdata/pax-bad-hdr-large.tar.bz2
936go118/src/archive/tar/testdata/pax-bad-mtime-file.tar 937go118/src/archive/tar/testdata/pax-bad-mtime-file.tar
937go118/src/archive/tar/testdata/pax-global-records.tar 938go118/src/archive/tar/testdata/pax-global-records.tar
938go118/src/archive/tar/testdata/pax-multi-hdrs.tar 939go118/src/archive/tar/testdata/pax-multi-hdrs.tar
939go118/src/archive/tar/testdata/pax-nil-sparse-data.tar 940go118/src/archive/tar/testdata/pax-nil-sparse-data.tar
940go118/src/archive/tar/testdata/pax-nil-sparse-hole.tar 941go118/src/archive/tar/testdata/pax-nil-sparse-hole.tar
941go118/src/archive/tar/testdata/pax-nul-path.tar 942go118/src/archive/tar/testdata/pax-nul-path.tar
942go118/src/archive/tar/testdata/pax-nul-xattrs.tar 943go118/src/archive/tar/testdata/pax-nul-xattrs.tar
943go118/src/archive/tar/testdata/pax-path-hdr.tar 944go118/src/archive/tar/testdata/pax-path-hdr.tar
944go118/src/archive/tar/testdata/pax-pos-size-file.tar 945go118/src/archive/tar/testdata/pax-pos-size-file.tar
945go118/src/archive/tar/testdata/pax-records.tar 946go118/src/archive/tar/testdata/pax-records.tar
946go118/src/archive/tar/testdata/pax-sparse-big.tar 947go118/src/archive/tar/testdata/pax-sparse-big.tar
947go118/src/archive/tar/testdata/pax.tar 948go118/src/archive/tar/testdata/pax.tar
948go118/src/archive/tar/testdata/small.txt 949go118/src/archive/tar/testdata/small.txt
@@ -10810,26 +10811,28 @@ go118/test/fixedbugs/issue52953.go @@ -10810,26 +10811,28 @@ go118/test/fixedbugs/issue52953.go
10810go118/test/fixedbugs/issue53137.dir/main.go 10811go118/test/fixedbugs/issue53137.dir/main.go
10811go118/test/fixedbugs/issue53137.go 10812go118/test/fixedbugs/issue53137.go
10812go118/test/fixedbugs/issue53454.go 10813go118/test/fixedbugs/issue53454.go
10813go118/test/fixedbugs/issue5358.go 10814go118/test/fixedbugs/issue5358.go
10814go118/test/fixedbugs/issue53600.go 10815go118/test/fixedbugs/issue53600.go
10815go118/test/fixedbugs/issue53600.out 10816go118/test/fixedbugs/issue53600.out
10816go118/test/fixedbugs/issue53702.go 10817go118/test/fixedbugs/issue53702.go
10817go118/test/fixedbugs/issue5373.go 10818go118/test/fixedbugs/issue5373.go
10818go118/test/fixedbugs/issue54467.go 10819go118/test/fixedbugs/issue54467.go
10819go118/test/fixedbugs/issue5470.dir/a.go 10820go118/test/fixedbugs/issue5470.dir/a.go
10820go118/test/fixedbugs/issue5470.dir/b.go 10821go118/test/fixedbugs/issue5470.dir/b.go
10821go118/test/fixedbugs/issue5470.go 10822go118/test/fixedbugs/issue5470.go
10822go118/test/fixedbugs/issue5493.go 10823go118/test/fixedbugs/issue5493.go
 10824go118/test/fixedbugs/issue55122.go
 10825go118/test/fixedbugs/issue55122b.go
10823go118/test/fixedbugs/issue5515.go 10826go118/test/fixedbugs/issue5515.go
10824go118/test/fixedbugs/issue5581.go 10827go118/test/fixedbugs/issue5581.go
10825go118/test/fixedbugs/issue5607.go 10828go118/test/fixedbugs/issue5607.go
10826go118/test/fixedbugs/issue5609.go 10829go118/test/fixedbugs/issue5609.go
10827go118/test/fixedbugs/issue5614.dir/rethinkgo.go 10830go118/test/fixedbugs/issue5614.dir/rethinkgo.go
10828go118/test/fixedbugs/issue5614.dir/x.go 10831go118/test/fixedbugs/issue5614.dir/x.go
10829go118/test/fixedbugs/issue5614.dir/y.go 10832go118/test/fixedbugs/issue5614.dir/y.go
10830go118/test/fixedbugs/issue5614.go 10833go118/test/fixedbugs/issue5614.go
10831go118/test/fixedbugs/issue5698.go 10834go118/test/fixedbugs/issue5698.go
10832go118/test/fixedbugs/issue5704.go 10835go118/test/fixedbugs/issue5704.go
10833go118/test/fixedbugs/issue5753.go 10836go118/test/fixedbugs/issue5753.go
10834go118/test/fixedbugs/issue5755.dir/a.go 10837go118/test/fixedbugs/issue5755.dir/a.go
10835go118/test/fixedbugs/issue5755.dir/main.go 10838go118/test/fixedbugs/issue5755.dir/main.go
@@ -11652,26 +11655,27 @@ go118/test/typeparam/issue51733.go @@ -11652,26 +11655,27 @@ go118/test/typeparam/issue51733.go
11652go118/test/typeparam/issue51765.go 11655go118/test/typeparam/issue51765.go
11653go118/test/typeparam/issue51836.dir/a.go 11656go118/test/typeparam/issue51836.dir/a.go
11654go118/test/typeparam/issue51836.dir/aa.go 11657go118/test/typeparam/issue51836.dir/aa.go
11655go118/test/typeparam/issue51836.dir/p.go 11658go118/test/typeparam/issue51836.dir/p.go
11656go118/test/typeparam/issue51836.go 11659go118/test/typeparam/issue51836.go
11657go118/test/typeparam/issue52026.go 11660go118/test/typeparam/issue52026.go
11658go118/test/typeparam/issue52117.dir/a.go 11661go118/test/typeparam/issue52117.dir/a.go
11659go118/test/typeparam/issue52117.dir/b.go 11662go118/test/typeparam/issue52117.dir/b.go
11660go118/test/typeparam/issue52117.go 11663go118/test/typeparam/issue52117.go
11661go118/test/typeparam/issue52228.go 11664go118/test/typeparam/issue52228.go
11662go118/test/typeparam/issue52241.go 11665go118/test/typeparam/issue52241.go
11663go118/test/typeparam/issue53419.go 11666go118/test/typeparam/issue53419.go
11664go118/test/typeparam/issue53477.go 11667go118/test/typeparam/issue53477.go
 11668go118/test/typeparam/issue54911.go
11665go118/test/typeparam/list.go 11669go118/test/typeparam/list.go
11666go118/test/typeparam/list2.go 11670go118/test/typeparam/list2.go
11667go118/test/typeparam/listimp.dir/a.go 11671go118/test/typeparam/listimp.dir/a.go
11668go118/test/typeparam/listimp.dir/main.go 11672go118/test/typeparam/listimp.dir/main.go
11669go118/test/typeparam/listimp.go 11673go118/test/typeparam/listimp.go
11670go118/test/typeparam/listimp2.dir/a.go 11674go118/test/typeparam/listimp2.dir/a.go
11671go118/test/typeparam/listimp2.dir/main.go 11675go118/test/typeparam/listimp2.dir/main.go
11672go118/test/typeparam/listimp2.go 11676go118/test/typeparam/listimp2.go
11673go118/test/typeparam/lockable.go 11677go118/test/typeparam/lockable.go
11674go118/test/typeparam/map.go 11678go118/test/typeparam/map.go
11675go118/test/typeparam/mapimp.dir/a.go 11679go118/test/typeparam/mapimp.dir/a.go
11676go118/test/typeparam/mapimp.dir/main.go 11680go118/test/typeparam/mapimp.dir/main.go
11677go118/test/typeparam/mapimp.go 11681go118/test/typeparam/mapimp.go

cvs diff -r1.7 -r1.7.2.1 pkgsrc/lang/go118/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/go118/distinfo 2022/09/07 06:36:33 1.7
+++ pkgsrc/lang/go118/distinfo 2022/10/07 16:34:03 1.7.2.1
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.7 2022/09/07 06:36:33 bsiegert Exp $ 1$NetBSD: distinfo,v 1.7.2.1 2022/10/07 16:34:03 bsiegert Exp $
2 2
3BLAKE2s (go1.18.6.src.tar.gz) = 71c3a452522d81e751845cc89a341a7164d80c2d3368d36c6bf71191185117b2 3BLAKE2s (go1.18.7.src.tar.gz) = 90a986b01c2ff99dc45c08aa05e35c3c3495bc0265a057aead2d64656e321780
4SHA512 (go1.18.6.src.tar.gz) = 2af66b09bfe033b413eb7603a73a490319bf49fec0a2e20c40350e60b9ef35250a6dc8544c5fc67bd1ede55e242d056e7749f69ef500a38b1efe4b8f93078de3 4SHA512 (go1.18.7.src.tar.gz) = cf1ff024e94b900b87cc52d3ec04b0f7f853880a99c416791ad4b9af5f8e50ec82fbe00788bc8dcc184ef5ce1a9df17f5f5e95cf01c0c8138f28f53d691ca5d4
5Size (go1.18.6.src.tar.gz) = 22865753 bytes 5Size (go1.18.7.src.tar.gz) = 22872579 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