CVE-2021-4122

MEDIUM CVSS 3.1: 4.3 EPSS 0.32%
Updated Oct 14, 2026
Cryptsetup_Project
Parameter Value
CVSS 4.3 (MEDIUM)
Affected Versions 2.4.0 — 2.4.3
Fixed In 2.3.7
Type CWE-345 (Insufficient Verification of Data)
Vendor Cryptsetup_Project
Public PoC No

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.

Attack Parameters

Attack Vector
Physical
Requires physical access
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 2

Configuration From (including) Up to (excluding)
Cryptsetup_Project Cryptsetup
cpe:2.3:a:cryptsetup_project:cryptsetup:*:*:*:*:*:*:*:*
— 2.3.7
Cryptsetup_Project Cryptsetup
cpe:2.3:a:cryptsetup_project:cryptsetup:*:*:*:*:*:*:*:*
2.4.0 2.4.3