CVE-2022-1053

n/a keylime: Improper Input Validation

No CVSS score yet EPSS 1.48%

Published 6 May 2022 Updated 2 Aug 2024 CNA: redhat

Check your servers for CVE-2022-1053

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-1053 affects keylime, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

Keylime does not enforce that the agent registrar data is the same when the tenant uses it for validation of the EK and identity quote and the verifier for validating the integrity quote. This allows an attacker to use one AK, EK pair from a real TPM to pass EK validation and give the verifier an AK of a software TPM. A successful attack breaks the entire chain of trust because a not validated AK is used by the verifier. This issue is worse if the validation happens first and then the agent gets added to the verifier because the timing is easier and the verifier does not validate the regcount entry being equal to 1,

Exploitation

EPSS 1.48%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 74.6% of all scored CVEs. Scores of 1 Dec 2026.

Weakness

  • CWE-20 Improper Input Validation

Affected products

As the CNA lists them.

ProductVersions
keylime
n/a
affected Affects keylime v6.4.0 and prior, Fixed in – v6.4.0

Is my server affected?

Find the installed version of keylime and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i keylime
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-1053 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-1053

RHEL, Rocky, Alma, Fedora

rpm -q keylime
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-1053

Alpine

apk list --installed | grep -i keylime

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-1053
trivy image --scanners vuln IMAGE | grep CVE-2022-1053

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Other references

Source: the record CVE-2022-1053 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.