Skip to content
OpenAdvisories
Medium · 5.9 CVE-2019-11840 EUVD-2022-5096GHSA-r5c5-pr8j-pfp7GO-2022-0209

golang.org/x/crypto/salsa20/salsa uses insufficiently random values

Published May 9, 2019 · Updated Aug 4, 2024 · Assigned by mitre

Description

An issue was discovered in the supplementary Go cryptography library, golang.org/x/crypto, before v0.0.0-20190320223903-b7391e95e576. A flaw was found in the amd64 implementation of the golang.org/x/crypto/salsa20 and golang.org/x/crypto/salsa20/salsa packages. If more than 256 GiB of keystream is generated, or if the counter otherwise grows greater than 32 bits, the amd64 implementation will first generate incorrect output, and then cycle back to previously generated keystream. Repeated keystream bytes can lead to loss of confidentiality in encryption applications, or to predictability in CSPRNG applications.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-go.crypto 1:0.0~git20200221.2aa609c-1 —
Debian 13 golang-go.crypto 1:0.0~git20200221.2aa609c-1 —
Debian 12 golang-go.crypto 1:0.0~git20200221.2aa609c-1 —
Debian 10 golang-go.crypto 1:0.0~git20181203.505ab14-1+deb10u1 DLA-3455-1
Debian 9 golang-go.crypto 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1+deb8u1 DLA-2402-1
Debian 9 obfs4proxy 0.0.7-1+deb8u1 DLA-2442-1
Debian 9 rclone 1.35-1+deb8u1 DLA-2454-1
Debian 9 snapd 2.21-2+deb9u1 DLA-2527-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 golang-go.crypto 0.0~hg190-1+deb8u1 DLA-1840-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 snapd No fix yet —
Ubuntu 26.04 LTS snapd No fix yet —
Ubuntu 25.10 snapd No fix yet —
Ubuntu 24.04 LTS snapd No fix yet —
Ubuntu 22.04 LTS snapd No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS snapd No fix yet —
Ubuntu Pro 18.04 LTS snapd +1 No fix yet —
Ubuntu Pro 16.04 LTS snapd +1 No fix yet —
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 jenkins 2.204.1.1578490170-1.el7 RHBA-2020:0063
Red Hat OpenShift 4 openshift +1 4.3.0-202001131753.git.0.0aee6a8.el7 RHBA-2020:0063
Red Hat OpenShift 3 atomic-enterprise-service-catalog +1 1:3.11.374-1.git.1675.738abcc.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift +12 3.11.374-1.git.0.ebd3ee9.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift-cluster-autoscaler 3.11.374-1.git.0.2996f62.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift-descheduler 3.11.374-1.git.299.f128e96.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift-dockerregistry 3.11.374-1.git.481.e6a880c.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift-metrics-server 3.11.374-1.git.53.9df25a9.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift-node-problem-detector 3.11.374-1.git.263.28335fb.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift-service-idler 3.11.374-1.git.15.523a1f7.el7 RHSA-2021:0079
Red Hat OpenShift 3 atomic-openshift-web-console 3.11.374-1.git.647.9e78d83.el7 RHSA-2021:0079
Red Hat OpenShift 3 golang-github-openshift-oauth-proxy 3.11.374-1.git.439.966c536.el7 RHSA-2021:0079
Red Hat OpenShift 3 openshift-enterprise-autoheal 3.11.374-1.git.218.9cf7939.el7 RHSA-2021:0079
Red Hat OpenShift 3 openshift-enterprise-cluster-capacity 3.11.374-1.git.379.80bd08f.el7 RHSA-2021:0079
Red Hat OpenShift 3 prometheus +1 3.11.374-1.git.5026.29379c4.el7 RHSA-2021:0079
Red Hat OpenShift 3 prometheus-alertmanager +1 3.11.374-1.git.0.3abd2a5.el7 RHSA-2021:0079
Red Hat OpenShift 3 prometheus-node-exporter +1 3.11.374-1.git.1062.490d6d5.el7 RHSA-2021:0079
Red Hat OpenShift 3 python-urllib3 +1 1.26.2-1.el7 RHSA-2021:0079

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling k3d +2 5.6.0-r11 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go golang.org/x/crypto < 0.0.0-20190320223903-b7391e95e576 0.0.0-20190320223903-b7391e95e576 GHSA-r5c5-pr8j-pfp7

Advisories 10

References