Vulnerability · Published Sep 16, 2020 · Assigned by redhat
CVE-2020-14382
High 7.8
In plain English
A high-severity security flaw in cryptsetup. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability was found in upstream release cryptsetup-2.2.0 where, there's a bug in LUKS2 format validation code, that is effectively invoked on every device/image presenting itself as LUKS2 container. The bug is in segments validation code in file 'lib/luks2/luks2_json_metadata.c' in function hdr_validate_segments(struct crypt_device *cd, json_object *hdr_jobj) where the code does not check for possible overflow on memory allocation used for intervals array (see statement "intervals = malloc(first_backup * sizeof(*intervals));"). Due to the bug, library can be *tricked* to expect such allocation was successful but for far less memory then originally expected. Later it may read data FROM image crafted by an attacker and actually write such data BEYOND allocated memory.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | cryptsetup | 2.3.4-r0 | ALPINE-CVE-2020-14382 |
| Alpine:v3.21 | cryptsetup | 2.3.4-r0 | ALPINE-CVE-2020-14382 |
| Alpine:v3.22 | cryptsetup | 2.3.4-r0 | ALPINE-CVE-2020-14382 |
| Alpine:v3.23 | cryptsetup | 2.3.4-r0 | ALPINE-CVE-2020-14382 |
| Alpine:v3.24 | cryptsetup | 2.3.4-r0 | ALPINE-CVE-2020-14382 |
| Debian:12 | cryptsetup | 2:2.3.4-1 | DEBIAN-CVE-2020-14382 |
| Debian:13 | cryptsetup | 2:2.3.4-1 | DEBIAN-CVE-2020-14382 |
| Debian:14 | cryptsetup | 2:2.3.4-1 | DEBIAN-CVE-2020-14382 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | cryptsetup | cryptsetup-2.2.0 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1874712 x_refsource_MISC
- USN-4493-1 vendor-advisory, x_refsource_UBUNTU
- FEDORA-2020-5ed5af6275 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-8c76e12e62 vendor-advisory, x_refsource_FEDORA