cve.bz

CVE-2020-14382 Out-of-bounds Write

7.8 highEPSS 1.2%Fix available

High (7.8). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 68th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-14382 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-14382?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-14382?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-14382 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
cryptsetup_project:cryptsetup2.2.0
redhat:enterprise_linux8.0
canonical:ubuntu_linux20.04
fedoraproject:fedora31
fedoraproject:fedora33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14cryptsetup2:2.3.4-1DEBIAN-CVE-2020-14382
Ubuntu20.04:LTScryptsetup2:2.2.2-3ubuntu2.2UBUNTU-CVE-2020-14382 USN-4493-1
Red Hatenterprise_linux:8::appstreamcryptsetup-devel, cryptsetup-debuginfo, veritysetup-debuginfo and 4 more0:2.3.3-2.el8RHSA-2020:4542
Red Hatenterprise_linux:8::baseoscryptsetup, veritysetup, integritysetup and 8 more0:2.3.3-2.el8RHSA-2020:4542
Red Hatrhel_eus:8.1::appstreamcryptsetup-devel, cryptsetup-debuginfo, veritysetup-debuginfo and 4 more0:2.2.0-2.el8_1.1RHSA-2020:4900
Red Hatrhel_eus:8.1::baseoscryptsetup, veritysetup, integritysetup and 8 more0:2.2.0-2.el8_1.1RHSA-2020:4900
Red Hatrhel_eus:8.2::appstreamcryptsetup-devel, cryptsetup-debuginfo, veritysetup-debuginfo and 4 more0:2.2.2-1.el8_2.1RHSA-2021:0258
Red Hatrhel_eus:8.2::baseoscryptsetup, veritysetup, integritysetup and 8 more0:2.2.2-1.el8_2.1RHSA-2021:0258
openSUSETumbleweedcryptsetup2.4.1-1.1openSUSE-SU-2024:10704-1
Alpinev3.11cryptsetup2.2.2-r1ALPINE-CVE-2020-14382
Alpinev3.12cryptsetup2.3.2-r1ALPINE-CVE-2020-14382
Alpinev3.13, v3.14, v3.15 and 9 morecryptsetup2.3.4-r0ALPINE-CVE-2020-14382

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw was introduced in upstream release cryptsetup-2.2.0, with the inclusion of the LUKS2 re-encryption code. This feature is not available in Red Hat Enterprise Linux 7, therefore it is not affected by this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8cryptsetup-0:2.3.3-2.el8Fixed 2020-11-04RHSA-2020:4542
Red Hat Enterprise Linux 8.1 Extended Update Supportcryptsetup-0:2.2.0-2.el8_1.1Fixed 2020-11-04RHSA-2020:4900
Red Hat Enterprise Linux 8.2 Extended Update Supportcryptsetup-0:2.2.2-1.el8_2.1Fixed 2021-01-26RHSA-2021:0258
Red Hat Enterprise Linux 7cryptsetupNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-14382.

References

Check your stackJSON