# CVE-2020-14382: 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…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 67% of CVEs (2026-12-01)
- Published: 2020-09-16T14:37:52.000Z
- Modified: 2026-06-17T02:54:39.927Z
- Weaknesses: CWE-787
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- cryptsetup: cryptsetup-2.2.0
- cryptsetup_project cryptsetup: 2.2.0
- redhat enterprise_linux: 8.0
- canonical ubuntu_linux: 20.04
- fedoraproject fedora: 31; 33

## Every score

- NVD: 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`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1874712> (issue-tracking, patch, third-party-advisory)
- <https://usn.ubuntu.com/4493-1/> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OJTQ4KSVCW2NMSU5WFVPOHY46WMNF4OB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TD6YSD63LLRRC4WQ7DJLSXWNUCY6FWBM/> (vendor-advisory)

## Sources

- CVE List: [CVE-2020-14382](https://www.cve.org/CVERecord?id=CVE-2020-14382), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-14382](https://nvd.nist.gov/vuln/detail/CVE-2020-14382), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-14382 · Whole record: https://cve.day/CVE-2020-14382.json · Rebuilt by cve.day 2026-11-25T22:57:54.736Z
