pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang Update go115 to 1.15.5 (security fix).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/079dda50e47b
branches:  trunk
changeset: 441924:079dda50e47b
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Fri Nov 13 18:45:50 2020 +0000

description:
Update go115 to 1.15.5 (security fix).

   - math/big: panic during recursive division of very large numbers

A number of math/big.Int <https://pkg.go.dev/math/big#Int> methods (Div,
Exp, DivMod, Quo, Rem, QuoRem, Mod, ModInverse, ModSqrt, Jacobi, and GCD)
can panic when provided crafted large inputs. For the panic to happen, the
divisor or modulo argument must be larger than 3168 bits (on 32-bit
architectures) or 6336 bits (on 64-bit architectures). Multiple math/big.Rat
<https://pkg.go.dev/math/big#Rat> methods are similarly affected.

crypto/rsa.VerifyPSS <https://pkg.go.dev/crypto/rsa#VerifyPSS>,
crypto/rsa.VerifyPKCS1v15 <https://pkg.go.dev/crypto/rsa#VerifyPKCS1v15>,
and crypto/dsa.Verify <https://pkg.go.dev/crypto/dsa#Verify> may panic when
provided crafted public keys and signatures. crypto/ecdsa and
crypto/elliptic operations may only be affected if custom CurveParams
<https://pkg.go.dev/crypto/elliptic#CurveParams> with unusually large field
sizes (several times larger than the largest supported curve, P-521) are in
use. Using crypto/x509.Verify on a crafted X.509 certificate chain can lead
to a panic, even if the certificates don’t chain to a trusted root. The
chain can be delivered via a crypto/tls connection to a client, or to a
server that accepts and verifies client certificates. net/http clients can
be made to crash by an HTTPS server, while net/http servers that accept
client certificates will recover the panic and are unaffected.

Moreover, an application might crash invoking
crypto/x509.(*CertificateRequest).CheckSignature on an X.509 certificate
request or during a golang.org/x/crypto/otr conversation. Parsing a
golang.org/x/crypto/openpgp Entity or verifying a signature may crash.
Finally, a golang.org/x/crypto/ssh client can panic due to a malformed host
key, while a server could panic if either PublicKeyCallback accepts a
malformed public key, or if IsUserAuthority accepts a certificate with a
malformed public key.

This issue is CVE-2020-28362 and Go issue golang.org/issue/42552.


   - cmd/go: arbitrary code execution at build time through cgo

The go command may execute arbitrary code at build time when cgo is in use.
This may occur when running go get on a malicious package, or any other
command that builds untrusted code.

This can be caused by malicious gcc flags specified via a #cgo directive,
or by a malicious symbol name in a linked object file.

These issues are CVE-2020-28367 and CVE-2020-28366, and Go issues
golang.org/issue/42556 and golang.org/issue/42559 respectively.

diffstat:

 lang/go/version.mk  |   4 ++--
 lang/go115/PLIST    |   3 ++-
 lang/go115/distinfo |  10 +++++-----
 3 files changed, 9 insertions(+), 8 deletions(-)

diffs (53 lines):

diff -r d0b1d962b4b5 -r 079dda50e47b lang/go/version.mk
--- a/lang/go/version.mk        Fri Nov 13 18:27:57 2020 +0000
+++ b/lang/go/version.mk        Fri Nov 13 18:45:50 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.104 2020/11/13 18:27:35 bsiegert Exp $
+# $NetBSD: version.mk,v 1.105 2020/11/13 18:45:50 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"
 
-GO115_VERSION= 1.15.4
+GO115_VERSION= 1.15.5
 GO114_VERSION= 1.14.12
 GO113_VERSION= 1.13.15
 GO110_VERSION= 1.10.8
diff -r d0b1d962b4b5 -r 079dda50e47b lang/go115/PLIST
--- a/lang/go115/PLIST  Fri Nov 13 18:27:57 2020 +0000
+++ b/lang/go115/PLIST  Fri Nov 13 18:45:50 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2020/11/08 20:38:09 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.4 2020/11/13 18:45:50 bsiegert Exp $
 bin/go${GOVERSSUFFIX}
 bin/gofmt${GOVERSSUFFIX}
 go115/AUTHORS
@@ -184,6 +184,7 @@
 go115/misc/android/README
 go115/misc/android/go_android_exec.go
 go115/misc/arm/a
+go115/misc/cgo/errors/badsym_test.go
 go115/misc/cgo/errors/errors_test.go
 go115/misc/cgo/errors/ptr_test.go
 go115/misc/cgo/errors/testdata/err1.go
diff -r d0b1d962b4b5 -r 079dda50e47b lang/go115/distinfo
--- a/lang/go115/distinfo       Fri Nov 13 18:27:57 2020 +0000
+++ b/lang/go115/distinfo       Fri Nov 13 18:45:50 2020 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.4 2020/11/08 20:38:10 bsiegert Exp $
+$NetBSD: distinfo,v 1.5 2020/11/13 18:45:50 bsiegert Exp $
 
-SHA1 (go1.15.4.src.tar.gz) = c8ab1f9921cfcd4f9b6f444edaac750de042fc01
-RMD160 (go1.15.4.src.tar.gz) = 5edf9a8f8b2a4894dd07081a49629870e4d9e23c
-SHA512 (go1.15.4.src.tar.gz) = 84fc687806d7904be0afcdfb4f45a74b4b45820c5c79b21b0c82cd51d07f3f8ae37e7f80730a411b96bdcf7f635b473ab0233c1bce977d2cf307d9a63aeb3df5
-Size (go1.15.4.src.tar.gz) = 23017785 bytes
+SHA1 (go1.15.5.src.tar.gz) = 696fee3f3efa184c5d9ad28b048bbd36d7c84ef3
+RMD160 (go1.15.5.src.tar.gz) = c5c60ae185efd5b399d222e2430380da7d3bf5e0
+SHA512 (go1.15.5.src.tar.gz) = 8e1d71f628d364b949b1e124af8950a563bbe9d9ae73b94c66af6ce029f67c26e2654556c0c118d0bc8566af52a7e9ed736b4667bbef7ccdab2bd338c43e6eb4
+Size (go1.15.5.src.tar.gz) = 23019303 bytes
 SHA1 (patch-misc_io_clangwrap.sh) = df5911c430ff6251abab12e5cc233e32fc3cd953
 SHA1 (patch-src_cmd_dist_util.go) = 24e6f1b6ded842a8ce322a40e8766f7d344bc47e
 SHA1 (patch-src_cmd_link_internal_ld_elf.go) = 3dfcb5c824d4201fadda0cfb6b48e5938899baf0


Home | Main Index | Thread Index | Old Index