{"id":"UBUNTU-CVE-2021-4122","details":"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.","modified":"2026-04-22T14:58:07.057952Z","published":"2022-01-13T00:00:00Z","related":["USN-5286-1"],"upstream":["CVE-2021-4122"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-4122"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2022/01/13/2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5286-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-4122"}],"affected":[{"package":{"name":"cryptsetup","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/cryptsetup@2:2.2.2-3ubuntu2.4?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:2.2.2-3ubuntu2.4"}]}],"versions":["2:2.2.0-3ubuntu1","2:2.2.1-1ubuntu1","2:2.2.2-1ubuntu1","2:2.2.2-2ubuntu1","2:2.2.2-3ubuntu1","2:2.2.2-3ubuntu2","2:2.2.2-3ubuntu2.2","2:2.2.2-3ubuntu2.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"cryptsetup","binary_version":"2:2.2.2-3ubuntu2.4"},{"binary_name":"cryptsetup-bin","binary_version":"2:2.2.2-3ubuntu2.4"},{"binary_name":"cryptsetup-initramfs","binary_version":"2:2.2.2-3ubuntu2.4"},{"binary_name":"cryptsetup-run","binary_version":"2:2.2.2-3ubuntu2.4"},{"binary_name":"libcryptsetup12","binary_version":"2:2.2.2-3ubuntu2.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4122.json"}},{"package":{"name":"cryptsetup","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/cryptsetup@2:2.4.3-1ubuntu1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:2.4.3-1ubuntu1"}]}],"versions":["2:2.3.6-0ubuntu1","2:2.4.2-1ubuntu3","2:2.4.2-1ubuntu4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"cryptsetup","binary_version":"2:2.4.3-1ubuntu1"},{"binary_name":"cryptsetup-bin","binary_version":"2:2.4.3-1ubuntu1"},{"binary_name":"cryptsetup-initramfs","binary_version":"2:2.4.3-1ubuntu1"},{"binary_name":"cryptsetup-run","binary_version":"2:2.4.3-1ubuntu1"},{"binary_name":"cryptsetup-suspend","binary_version":"2:2.4.3-1ubuntu1"},{"binary_name":"libcryptsetup12","binary_version":"2:2.4.3-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4122.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}