CVE-2021-4122

NameCVE-2021-4122
DescriptionIt 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5070-1
Debian Bugs1003686

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cryptsetup (PTS)buster2:2.1.0-5+deb10u2fixed
bullseye (security), bullseye2:2.3.7-1+deb11u1fixed
bookworm2:2.5.0-6fixed
sid2:2.6.0-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cryptsetupsourcestretch(not affected)
cryptsetupsourcebuster(not affected)
cryptsetupsourcebullseye2:2.3.7-1+deb11u1DSA-5070-1
cryptsetupsource(unstable)2:2.4.3-11003686

Notes

[buster] - cryptsetup <not-affected> (Vulnerable code not present; does not support online LUKS2 reencryption)
[stretch] - cryptsetup <not-affected> (Vulnerable code not present; does not support LUKS2)
https://www.openwall.com/lists/oss-security/2022/01/13/2
https://bugzilla.redhat.com/show_bug.cgi?id=2032401
https://gitlab.com/cryptsetup/cryptsetup/-/commit/0113ac2d889c5322659ad0596d4cfc6da53e356c
2.4 branch: https://gitlab.com/cryptsetup/cryptsetup/-/commit/de98f011418c62e7b825a8ce3256e8fcdc84756e
2.3 branch: https://gitlab.com/cryptsetup/cryptsetup/-/commit/60addcffa6794c29dccf33d8db5347f24b75f2fc

Search for package or bug name: Reporting problems