CVEfocus › CVE database › CVE-2021-22212

CVE-2021-22212

CVSS 4.0 MediumEPSS 0.5% (higher than 38% of CVEs)Published 2021-06-08Updated 2024-08-03Assigner: GitLab

ntpkeygen can generate keys that ntpd fails to parse. NTPsec 1.2.0 allows ntpkeygen to generate keys with '#' characters. ntpd then either pads, shortens the key, or fails to load these keys entirely, depending on the key type and the placement of the '#'. This results in the administrator not being able to use the keys as expected or the keys are shorter than expected and easier to brute-force, possibly resulting in MITM attacks between ntp clients and ntp servers. For short AES128 keys, ntpd generates a warning that it is padding them.

What to do

Fixed builds are available from Alpine, Debian: 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

14Fixed
1Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ntpsecNot affected
vulnerable_code_not_present
Ubuntu 22.04ntpsecNot affected
vulnerable_code_not_present
Ubuntu 20.04ntpsecNot affected
vulnerable_code_not_present
Ubuntu 18.04ntpsecFix pending
Debian 14ntpsecFixed1.2.0+dfsg1-4DEBIAN-CVE-2021-22212
Debian 13ntpsecFixed1.2.0+dfsg1-4DEBIAN-CVE-2021-22212
Debian 12ntpsecFixed1.2.0+dfsg1-4DEBIAN-CVE-2021-22212
Alpine Linux 3.24ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.23ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.22ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.21ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.20ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.19ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.18ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.17ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.16ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.15ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212
Alpine Linux 3.14ntpsecFixed1.2.1-r0ALPINE-CVE-2021-22212

What the vendor says

As published in the CVE record by GitLab, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

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.