CVE-2021-4122
cryptsetup: disable encryption via header rewrite
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 13, 2022
Updated · October 14, 2026
Description
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.
Statement
Red Hat Enterprise Linux version 7 and older are not affected since they do not support online reencryption.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.9CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CWE-349 · Acceptance of Extraneous Untrusted Data With Trusted Data