CVE-2020-14382
Last modified
CVE-2020-14382 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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));"). EPSS estimates a 1.16% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Cryptsetup Project | Cryptsetup | 2.2.0 |
| Redhat | Enterprise Linux | 8.0 |
| Canonical | Ubuntu Linux | 20.04 |
| Fedoraproject | Fedora | 31 |
| Fedoraproject | Fedora | 33 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1874712Issue Tracking, Patch, Third Party Advisory
- https://usn.ubuntu.com/4493-1/Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1874712Issue Tracking, Patch, Third Party Advisory
- https://usn.ubuntu.com/4493-1/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-14382?
How severe is CVE-2020-14382?
How do I fix CVE-2020-14382?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-14377A flaw was found in dpdk in versions before 18.11.10 and bef…7.1
- CVE-2020-14378An integer underflow in dpdk versions before 18.11.10 and be…3.3
- CVE-2020-14379A flaw was found in Red Hat AMQ Broker in a way that a XEE a…5.6
- CVE-2020-1438An elevation of privilege vulnerability exists in the way th…7.8
- CVE-2020-14380An account takeover flaw was found in Red Hat Satellite 6.7.…7.5
- CVE-2020-14381A flaw was found in the Linux kernel’s futex implementation.…7.8
- CVE-2020-14383A flaw was found in samba's DNS server. An authenticated use…6.5
- CVE-2020-14384A flaw was found in JBossWeb in versions before 7.5.31.Final…7.5
- CVE-2020-14385A flaw was found in the Linux kernel before 5.9-rc4. A failu…5.5
- CVE-2020-14386A flaw was found in the Linux kernel before 5.9-rc4. Memory …7.8
- CVE-2020-14387A flaw was found in rsync in versions since 3.2.0pre1. Rsync…7.4
- CVE-2020-14388A flaw was found in the Red Hat 3scale API Management Platfo…6.3
Are you affected by CVE-2020-14382?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
