CVE-2020-14382 in Canonical Ubuntu Linux and 3 more products
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_segmen...
Affects 4 products from 4 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 20.04 |
| Cryptsetup Project | Cryptsetup | 2.2.0 |
| Fedoraproject | Fedora | 31 33 |
| Redhat | Enterprise Linux | 8.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-14382 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-179584-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2020-09-16 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
A vulnerability in the cryptsetup-2.2.0 release affects the LUKS2 format validation code, specifically in the hdr_validate_segments function, which does not properly validate segments in the JSON metadata header.
An attacker could exploit this vulnerability by presenting a specially crafted LUKS2 container to a system using cryptsetup-2.2.0, potentially leading to unauthorized access or data corruption.
Questions
What is CVE-2020-14382?
A vulnerability in the cryptsetup-2.2.0 release affects the LUKS2 format validation code, specifically in the hdr_validate_segments function, which does not properly validate segments in the JSON metadata header.
What is the CVSS score for CVE-2020-14382?
CVE-2020-14382 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 1.2%.
Is CVE-2020-14382 actively exploited?
No confirmed active exploitation of CVE-2020-14382 as of 2026-09-25.
How do I remediate CVE-2020-14382?
Priority: HIGH. Advisory: https://bugzilla.redhat.com/show_bug.cgi?id=1874712
What systems are affected by CVE-2020-14382?
CVE-2020-14382 affects Canonical Ubuntu Linux; Cryptsetup Project Cryptsetup; Fedoraproject Fedora; Redhat Enterprise Linux.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.