CVEfocus › CVE database › CVE-2020-14382

CVE-2020-14382

CVSS 7.8 HighEPSS 1.2% (higher than 67% of CVEs)Published 2020-09-16Updated 2024-08-04Assigner: redhat

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.

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

24Fixed
1Fix pending
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04cryptsetupFixed2:2.2.2-3ubuntu2.2UBUNTU-CVE-2020-14382
Ubuntu 18.04cryptsetupNot affected
vulnerable_code_not_present
Ubuntu 16.04cryptsetupNot affected
vulnerable_code_not_present
Ubuntu 14.04cryptsetupFix pending
Debian 14cryptsetupFixed2:2.3.4-1DEBIAN-CVE-2020-14382
Debian 13cryptsetupFixed2:2.3.4-1DEBIAN-CVE-2020-14382
Debian 12cryptsetupFixed2:2.3.4-1DEBIAN-CVE-2020-14382
Red Hat Enterprise Linux 8cryptsetupFixed0:2.3.3-2.el8RHSA-2020:4542
Red Hat Enterprise Linux 8cryptsetup-develFixed0:2.3.3-2.el8RHSA-2020:4542
Red Hat Enterprise Linux 8cryptsetup-libsFixed0:2.3.3-2.el8RHSA-2020:4542
Red Hat Enterprise Linux 8cryptsetup-reencryptFixed0:2.3.3-2.el8RHSA-2020:4542
Red Hat Enterprise Linux 8integritysetupFixed0:2.3.3-2.el8RHSA-2020:4542
Red Hat Enterprise Linux 8veritysetupFixed0:2.3.3-2.el8RHSA-2020:4542
Red Hat Enterprise Linux 7cryptsetupNot affected
Red Hat Enterprise Linux 7cryptsetup-develNot affected
Red Hat Enterprise Linux 7cryptsetup-libsNot affected
Red Hat Enterprise Linux 7cryptsetup-pythonNot affected
Red Hat Enterprise Linux 7cryptsetup-reencryptNot affected
Red Hat Enterprise Linux 7veritysetupNot affected
Alpine Linux 3.24cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.23cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.22cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.21cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.20cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.19cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.18cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.17cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.16cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.15cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.14cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.13cryptsetupFixed2.3.4-r0ALPINE-CVE-2020-14382
Alpine Linux 3.12cryptsetupFixed2.3.2-r1ALPINE-CVE-2020-14382
Alpine Linux 3.11cryptsetupFixed2.2.2-r1ALPINE-CVE-2020-14382

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.