CVEfocus › CVE database › CVE-2021-4122

CVE-2021-4122

EPSS 0.3% (higher than 17% of CVEs)Published 2022-08-24Updated 2026-10-14Assigner: redhat

It was found that a specially crafted LUKS header could trick cryptsetup into disabling encryption during the recovery of the device. An attacker with physical access to the medium, such as a flash disk, could use this flaw to force a user into permanently disabling the encryption layer of that medium.

CWE-345

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

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

26Fixed
12Not 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 22.04cryptsetupFixed2:2.4.3-1ubuntu1UBUNTU-CVE-2021-4122
Ubuntu 20.04cryptsetupFixed2:2.2.2-3ubuntu2.4UBUNTU-CVE-2021-4122
Ubuntu 18.04cryptsetupNot affected
vulnerable_code_not_present
Debian 14cryptsetupFixed2:2.4.3-1DEBIAN-CVE-2021-4122
Debian 13cryptsetupFixed2:2.4.3-1DEBIAN-CVE-2021-4122
Debian 12cryptsetupFixed2:2.4.3-1DEBIAN-CVE-2021-4122
Red Hat Enterprise Linux 9cryptsetupNot affected
Red Hat Enterprise Linux 9cryptsetup-develNot affected
Red Hat Enterprise Linux 9cryptsetup-libsNot affected
Red Hat Enterprise Linux 9integritysetupNot affected
Red Hat Enterprise Linux 9veritysetupNot affected
Red Hat Enterprise Linux 8cryptsetupFixed0:2.3.3-4.el8_5.1RHSA-2022:0370
Red Hat Enterprise Linux 8cryptsetup-develFixed0:2.3.3-4.el8_5.1RHSA-2022:0370
Red Hat Enterprise Linux 8cryptsetup-libsFixed0:2.3.3-4.el8_5.1RHSA-2022:0370
Red Hat Enterprise Linux 8cryptsetup-reencryptFixed0:2.3.3-4.el8_5.1RHSA-2022:0370
Red Hat Enterprise Linux 8integritysetupFixed0:2.3.3-4.el8_5.1RHSA-2022:0370
Red Hat Enterprise Linux 8veritysetupFixed0:2.3.3-4.el8_5.1RHSA-2022:0370
Red Hat Enterprise Linux 7cryptsetupNot affected
Red Hat Enterprise Linux 7cryptsetup-develNot affected
Red Hat Enterprise Linux 7cryptsetup-libsNot affected
Red Hat Enterprise Linux 7cryptsetup-pythonNot affected
Red Hat Enterprise Linux 7cryptsetup-reencryptNot affected
Red Hat Enterprise Linux 7veritysetupNot affected
AlmaLinux 8cryptsetup-develFixed2.3.3-4.el8_5.1ALSA-2022:0370
Rocky Linux 8cryptsetupFixed0:2.3.3-4.el8_5.1RLSA-2022:0370
Alpine Linux 3.24cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.23cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.22cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.21cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.20cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.19cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.18cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.17cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.16cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.15cryptsetupFixed2.4.3-r0ALPINE-CVE-2021-4122
Alpine Linux 3.14cryptsetupFixed2.3.7-r0ALPINE-CVE-2021-4122
Alpine Linux 3.13cryptsetupFixed2.3.7-r0ALPINE-CVE-2021-4122
Alpine Linux 3.12cryptsetupFixed2.3.7-r0ALPINE-CVE-2021-4122

What the vendor says

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

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.