7.4
CWE
327
Advisory Published
Updated

CVE-2021-22212

First published: Tue Jun 08 2021(Updated: )

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.

Credit: cve@gitlab.com

Affected SoftwareAffected VersionHow to fix
NTPsec=1.2.0
Fedora=34

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-22212?

    CVE-2021-22212 has a medium severity rating due to potential mismanagement of keys in NTPsec.

  • How do I fix CVE-2021-22212?

    To fix CVE-2021-22212, users should avoid using '#' characters in keys generated by ntpkeygen.

  • Which versions of NTPsec are affected by CVE-2021-22212?

    CVE-2021-22212 affects NTPsec version 1.2.0.

  • What consequence does CVE-2021-22212 have for administrators?

    Administrators may find that keys created with '#' characters are either improperly loaded or unusable, leading to potential service disruption.

  • Is CVE-2021-22212 a vulnerability in Fedora?

    Yes, CVE-2021-22212 impacts Fedora 34 due to its use of the affected NTPsec version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203