CVE-2019-11840
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | snapd | Fix pending | UBUNTU-CVE-2019-11840 | |
| Ubuntu 26.04 | snapd | Will not fix snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor… | UBUNTU-CVE-2019-11840 | |
| Ubuntu 25.10 | golang-go.crypto | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | snapd | Will not fix snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor… | UBUNTU-CVE-2019-11840 | |
| Ubuntu 24.04 | snapd | Will not fix snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor… | UBUNTU-CVE-2019-11840 | |
| Ubuntu 22.04 | snapd | Will not fix snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor… | UBUNTU-CVE-2019-11840 | |
| Ubuntu 20.04 | lxd | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | snapd | Fix pending | UBUNTU-CVE-2019-11840 | |
| Ubuntu 18.04 | golang-go.crypto | Fix pending | UBUNTU-CVE-2019-11840 | |
| Ubuntu 18.04 | snapd | Fix pending | UBUNTU-CVE-2019-11840 | |
| Ubuntu 16.04 | golang-go.crypto | Will not fix snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor… | UBUNTU-CVE-2019-11840 | |
| Ubuntu 16.04 | lxd | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | snapd | Will not fix snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor… | UBUNTU-CVE-2019-11840 | |
| Debian 14 | golang-go.crypto | Fixed | 1:0.0~git20200221.2aa609c-1 | DEBIAN-CVE-2019-11840 |
| Debian 13 | golang-go.crypto | Fixed | 1:0.0~git20200221.2aa609c-1 | DEBIAN-CVE-2019-11840 |
| Debian 12 | golang-go.crypto | Fixed | 1:0.0~git20200221.2aa609c-1 | DEBIAN-CVE-2019-11840 |
| Red Hat Enterprise Linux 8 | gomtree | Not affected | ||
| Red Hat Enterprise Linux 7 | gomtree | Not affected | ||
| Go library | golang.org/x/crypto | Fixed | 0.0.0-20190320223903-b7391e95e576 | GHSA-r5c5-pr8j-pfp7 |
References
- https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ
- https://bugzilla.redhat.com/show_bug.cgi?id=1691529
- https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d
- https://github.com/golang/go/issues/30965
- https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html
- https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html
- https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html
- https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html
- https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html
- https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html
- https://pkg.go.dev/vuln/GO-2022-0209
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.