go: Fix CVE-2023-45285 and CVE-2023-45287
PATCH v2 1/1 go: Fix CVE-2023-45285 and CVE-2023-45287
From: Soumya Sambu <[email protected]>
CVE-2023-45285:
Using go get to fetch a module with the ".git" suffix may unexpectedly fallback to the insecure "git://" protocol if the module is unavailable via the secure "https://" and "git+ssh://" protocols, even if GOINSECURE is not set for said module. This only affects users who are not using the module proxy and are fetching modules directly (i.e. GOPROXY=off).
CVE-2023-45287:
Before Go 1.20, the RSA based TLS key exchanges used the math/big library, which is not constant time. RSA blinding was applied to prevent timing attacks, but analysis shows this may not have been fully effective. In particular it appears as if the removal of PKCS#1 padding may leak timing information, which in turn could be used to recover session key bits. In Go 1.20, the crypto/tls library switched to a fully constant time RSA implementation, which we do not believe exhibits any timing side channels.
References:
https://nvd.nist.gov/vuln/detail/CVE-2023-45285
https://nvd.nist.gov/vuln/detail/CVE-2023-45287
https://security-tracker.debian.org/tracker/CVE-2023-45285
https://security-tracker.debian.org/tracker/CVE-2023-45287
--- meta/recipes-devtools/go/go-1.17.13.inc | 2 + .../go/go-1.20/CVE-2023-45285.patch | 110 ++ .../go/go-1.20/CVE-2023-45287.patch | 1695 +++++++++++++++++ 3 files changed, 1807 insertions(+) create mode 100644 meta/recipes-devtools/go/go-1.20/CVE-2023-45285.patch create mode 100644 meta/recipes-devtools/go/go-1.20/CVE-2023-45287.patch
meta/recipes-devtools/go/go-1.17.13.inc +2 -0
@@ -48,6 +48,8 @@ SRC_URI += "\ file://CVE-2023-39319.patch \ file://CVE-2023-39318.patch \ file://CVE-2023-39326.patch \ + file://CVE-2023-45285.patch \ + file://CVE-2023-45287.patch \ " SRC_URI[main.sha256sum] = "a1a48b23afb206f95e7bbaa9b898d965f90826f6f1d1fc0c1d784ada0cd300fd"
meta/recipes-devtools/go/go-1.20/CVE-2023-45285.patch new file +110 -0
110 lines not on this page · raw message
meta/recipes-devtools/go/go-1.20/CVE-2023-45287.patch new file +1695 -0
1,695 lines not on this page · raw message
Signature · 1 line
2.40.0