CVE-2020-14382
Last modified
CVE-2020-14382 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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));"). EPSS estimates a 1.16% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Cryptsetup Project | Cryptsetup | 2.2.0 |
| Redhat | Enterprise Linux | 8.0 |
| Canonical | Ubuntu Linux | 20.04 |
| Fedoraproject | Fedora | 31 |
| Fedoraproject | Fedora | 33 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1874712Issue Tracking, Patch, Third Party Advisory
- https://usn.ubuntu.com/4493-1/Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1874712Issue Tracking, Patch, Third Party Advisory
- https://usn.ubuntu.com/4493-1/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-14382?
How severe is CVE-2020-14382?
How do I fix CVE-2020-14382?
Are you affected by CVE-2020-14382?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
