CVE-2021-4122

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-4122
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4122.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-4122
Related
Published
2022-08-24T16:15:09Z
Modified
2024-12-05T15:29:03.792202Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
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.

References

Affected packages

Alpine:v3.12 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.7-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.2-r1

Alpine:v3.13 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.7-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1

Alpine:v3.14 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.7-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0

Alpine:v3.15 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.3-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0
2.4.0-r0
2.4.0-r1
2.4.0-r2
2.4.0-r3
2.4.1-r0

Alpine:v3.16 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.3-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0
2.4.0-r0
2.4.0-r1
2.4.0-r2
2.4.0-r3
2.4.1-r0
2.4.2-r0

Alpine:v3.17 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.3-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0
2.4.0-r0
2.4.0-r1
2.4.0-r2
2.4.0-r3
2.4.1-r0
2.4.2-r0

Alpine:v3.18 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.3-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0
2.4.0-r0
2.4.0-r1
2.4.0-r2
2.4.0-r3
2.4.1-r0
2.4.2-r0

Alpine:v3.19 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.3-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0
2.4.0-r0
2.4.0-r1
2.4.0-r2
2.4.0-r3
2.4.1-r0
2.4.2-r0

Alpine:v3.20 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.3-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0
2.4.0-r0
2.4.0-r1
2.4.0-r2
2.4.0-r3
2.4.1-r0
2.4.2-r0

Alpine:v3.21 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:apk/alpine/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.3-r0

Affected versions

1.*

1.0.7-r0
1.0.7-r1
1.1.0-r0
1.1.2-r0
1.1.3-r0
1.2.0-r0
1.3.0-r0
1.3.1-r0
1.3.1-r1
1.3.1-r2
1.4.0-r0
1.4.1-r0
1.4.1-r1
1.4.2-r0
1.4.3-r0
1.5.0-r0
1.5.1-r0
1.6.0-r0
1.6.1-r0
1.6.1-r1
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.6.5-r0
1.6.5-r1
1.6.6-r0
1.6.6-r1
1.6.6-r2
1.6.6-r3
1.6.6-r4
1.6.7-r0
1.6.7-r1
1.6.8-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.2-r1
1.7.2-r2
1.7.4-r0
1.7.4-r1
1.7.5-r0
1.7.5-r1

2.*

2.0.0-r0
2.0.0-r1
2.0.1-r0
2.0.1-r1
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.2-r3
2.0.4-r0
2.0.4-r1
2.0.4-r2
2.0.6-r0
2.1.0-r0
2.2.0-r0
2.2.1-r0
2.2.2-r0
2.3.0-r0
2.3.1-r0
2.3.1-r1
2.3.2-r0
2.3.3-r0
2.3.4-r0
2.3.4-r1
2.3.4-r2
2.3.5-r0
2.3.6-r0
2.4.0-r0
2.4.0-r1
2.4.0-r2
2.4.0-r3
2.4.1-r0
2.4.2-r0

Debian:11 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:deb/debian/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:2.3.7-1+deb11u1

Affected versions

2:2.*

2:2.3.5-1
2:2.3.5-1+exp1
2:2.3.6-1+exp1
2:2.3.7-1+deb11u1~bpo10+1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:deb/debian/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:2.4.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / cryptsetup

Package

Name
cryptsetup
Purl
pkg:deb/debian/cryptsetup?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:2.4.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / gitlab.com/cryptsetup/cryptsetup

Affected ranges

Type
GIT
Repo
https://gitlab.com/cryptsetup/cryptsetup
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

v1_4_2
v1_4_3
v1_5_0
v1_5_1
v1_6_0
v1_6_1
v1_6_2
v1_6_3
v1_6_4
v1_6_5
v1_6_6
v1_6_7
v1_6_8
v1_7_0

v2.*

v2.0.0
v2.0.0-rc0
v2.0.0-rc1
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v2.0.5
v2.1.0
v2.2.0
v2.2.0-rc0
v2.2.0-rc1
v2.2.1
v2.2.2
v2.3.0
v2.3.0-rc0
v2.3.1
v2.3.2
v2.3.3
v2.4.0
v2.4.0-rc0
v2.4.0-rc1
v2.4.1
v2.4.2