Skip to content
Fencer Vulns
high 7.8

CVE-2020-14382 json

A vulnerability was found in upstream release cryptsetup-2.2.0 where, there's a bug in LUKS2 format validation code, that is effectively in…

published 2020-09-16 6 y ago modified 2026-06-17 4 mo ago also EUVD-2020-6522

cvss
7.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 67%
public exploits
0
none known

Summary

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.

Patch / fix

  • cryptsetup Debian 14, Debian 13, Debian 12 2:2.3.4-1

debian advisories DEBIAN-CVE-2020-14382

  • cryptsetup Ubuntu 20.04 LTS 2:2.2.2-3ubuntu2.2

ubuntu advisories UBUNTU-CVE-2020-14382

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • cryptsetup RHEL 8 2.3.3-2.el8
  • veritysetup RHEL 8 2.3.3-2.el8
  • integritysetup RHEL 8 2.3.3-2.el8
  • cryptsetup-libs RHEL 8 2.3.3-2.el8
  • cryptsetup-reencrypt RHEL 8 2.3.3-2.el8
  • cryptsetup RHEL 8.2 EUS 2.2.2-1.el8_2.1
  • veritysetup RHEL 8.2 EUS 2.2.2-1.el8_2.1
  • integritysetup RHEL 8.2 EUS 2.2.2-1.el8_2.1

red hat advisories RHSA-2021:0258RHSA-2020:4900RHSA-2020:4542

  • cryptsetup openSUSE Tumbleweed 2.4.1-1.1

opensuse advisories openSUSE-SU-2024:10704-1

  • cryptsetup Alpine 3.11 2.2.2-r1
  • cryptsetup Alpine 3.12 2.3.2-r1
  • cryptsetup Alpine 3.24, Alpine 3.23, Alpine 3.22 +9 more 2.3.4-r0

alpine advisories ALPINE-CVE-2020-14382

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-14382 updated cvss 7.8

cryptsetup: Out-of-bounds write when validating segments

  • Red Hat Enterprise Linux AppStream (v. 8) cryptsetup-devel 2.3.3-2.el8, cryptsetup-debuginfo 2.3.3-2.el8, veritysetup-debuginfo 2.3.3-2.el8, cryptsetup-debugsource 2.3.3-2.el8, integritysetup-debuginfo 2.3.3-2.el8, cryptsetup-libs-debuginfo 2.3.3-2.el8, +1 more
    fixed: vendor fix RHSA-2020:4542
  • Red Hat Enterprise Linux AppStream EUS (v. 8.1) cryptsetup-devel 2.2.0-2.el8_1.1, cryptsetup-debuginfo 2.2.0-2.el8_1.1, veritysetup-debuginfo 2.2.0-2.el8_1.1, cryptsetup-debugsource 2.2.0-2.el8_1.1, integritysetup-debuginfo 2.2.0-2.el8_1.1, cryptsetup-libs-debuginfo 2.2.0-2.el8_1.1, +1 more
    fixed: vendor fix RHSA-2020:4900
  • Red Hat Enterprise Linux AppStream EUS (v. 8.2) cryptsetup-devel 2.2.2-1.el8_2.1, cryptsetup-debuginfo 2.2.2-1.el8_2.1, veritysetup-debuginfo 2.2.2-1.el8_2.1, cryptsetup-debugsource 2.2.2-1.el8_2.1, integritysetup-debuginfo 2.2.2-1.el8_2.1, cryptsetup-libs-debuginfo 2.2.2-1.el8_2.1, +1 more
    fixed: vendor fix RHSA-2021:0258
  • Red Hat Enterprise Linux BaseOS (v. 8) cryptsetup 2.3.3-2.el8, veritysetup 2.3.3-2.el8, integritysetup 2.3.3-2.el8, cryptsetup-libs 2.3.3-2.el8, cryptsetup-reencrypt 2.3.3-2.el8
    fixed: vendor fix RHSA-2020:4542
  • Red Hat Enterprise Linux BaseOS EUS (v. 8.1) cryptsetup 2.2.0-2.el8_1.1, veritysetup 2.2.0-2.el8_1.1, integritysetup 2.2.0-2.el8_1.1, cryptsetup-libs 2.2.0-2.el8_1.1, cryptsetup-reencrypt 2.2.0-2.el8_1.1
    fixed: vendor fix RHSA-2020:4900
  • Red Hat Enterprise Linux BaseOS EUS (v. 8.2) cryptsetup 2.2.2-1.el8_2.1, veritysetup 2.2.2-1.el8_2.1, integritysetup 2.2.2-1.el8_2.1, cryptsetup-libs 2.2.2-1.el8_2.1, cryptsetup-reencrypt 2.2.2-1.el8_2.1
    fixed: vendor fix RHSA-2021:0258
  • Red Hat Enterprise Linux 7 cryptsetup, veritysetup, cryptsetup-libs, cryptsetup-python, cryptsetup-reencrypt
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.16% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected products

  • n/a cryptsetup

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.