Advisory

DEBIAN-CVE-2021-22212

Also known as: CVE-2021-22212

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.4, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Dates

Published
2021-06-08 13:15 UTC
Modified
2026-10-23 18:03 UTC

Affected packages and fixes

ntpsec

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 1.2.0+dfsg1-4 (ecosystem)

Fixed versions

1.2.0+dfsg1-4

Fix

  • Fixed version 1.2.0+dfsg1-4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ntpsec

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1.2.0+dfsg1-4 (ecosystem)

Fixed versions

1.2.0+dfsg1-4

Fix

  • Fixed version 1.2.0+dfsg1-4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ntpsec

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1.2.0+dfsg1-4 (ecosystem)

Fixed versions

1.2.0+dfsg1-4

Fix

  • Fixed version 1.2.0+dfsg1-4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences