CVE-2020-14382

Summary

CVECVE-2020-14382
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-09-16 15:15:00 UTC
Updated2023-11-07 03:17:00 UTC
DescriptionA 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.

Risk And Classification

Problem Types: CWE-787

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 20.04 All All All
Operating System Canonical Ubuntu Linux 20.04 All All All
Application Cryptsetup Project Cryptsetup 2.2.0 - All All
Application Cryptsetup Project Cryptsetup 2.2.0 - All All
Operating System Fedoraproject Fedora 31 All All All
Operating System Fedoraproject Fedora 33 All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Operating System Redhat Enterprise Linux 8.0 All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 33 Update: cryptsetup-2.3.4-1.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 33 Update: cryptsetup-2.3.4-1.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 31 Update: cryptsetup-2.3.4-1.fc31 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org Third Party Advisory
1874712 – (CVE-2020-14382) CVE-2020-14382 cryptsetup: Out-of-bounds write when validating segments MISC bugzilla.redhat.com Issue Tracking, Patch, Third Party Advisory
USN-4493-1: cryptsetup vulnerability | Ubuntu security notices | Ubuntu UBUNTU usn.ubuntu.com Third Party Advisory
[SECURITY] Fedora 31 Update: cryptsetup-2.3.4-1.fc31 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 500105 Alpine Linux Security Update for cryptsetup
  • 501392 Alpine Linux Security Update for cryptsetup
  • 503883 Alpine Linux Security Update for cryptsetup
  • 770068 Red Hat OpenShift Container Platform 4.6 Security Update (RHSA-2021:0436)
  • 940345 AlmaLinux Security Update for cryptsetup (ALSA-2020:4542)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report