CVE-2020-14382: High severity cryptsetup vulnerability

Published Sep 2, 2020
·
Updated

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/luks2jsonmetadata.c' in function hdrvalidatesegments(struct cryptdevice cd, jsonobject hdrjobj) where the code does not check for possible overflow on memory allocation used for intervals array (see statement "intervals = malloc(firstbackup 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.

Other sources

As per the reporter:

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/luks2jsonmetadata.c' in function hdrvalidatesegments(struct cryptdevice cd, jsonobject hdrjobj) where the code does not check for possible overflow on memory allocation used for intervals array (see statement "intervals = malloc(firstbackup 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!

Reference: https://bugzilla.redhat.com/showbug.cgi?id=1872294 Upstream commit: https://gitlab.com/cryptsetup/cryptsetup/-/commit/52f5cb8cedf22fb3e14c744814ec8af7614146c7

Red Hat

Affected Software

8 affected componentsFixes available
redhat/cryptsetup<2.3.4
2.3.4
ubuntu/cryptsetup<2:2.2.2-3ubuntu2.2
2:2.2.2-3ubuntu2.2
debian/cryptsetup
2:2.3.7-1+deb11u12:2.6.1-4~deb12u22:2.7.2-22:2.7.4-1
Cryptsetup Project Cryptsetup=2.2.0
redhat Enterprise Linux=8.0
Canonical Ubuntu Linux=20.04
Fedoraproject Fedora=31
Fedoraproject Fedora=33

Event History

Sep 3, 2020
CVE Published
via Ubuntu·12:00 AM
Sep 16, 2020
CVE Published
via MITRE·02:37 PM
Data Sourced
via MITRE·02:37 PM
DescriptionWeakness
Aug 8, 2024
Data Sourced
via Launchpad·12:56 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID of this vulnerability?

The vulnerability ID of this vulnerability is CVE-2020-14382.

2

What is the severity of CVE-2020-14382?

CVE-2020-14382 has a severity of 7.8 (High).

3

What software versions are affected by CVE-2020-14382?

CVE-2020-14382 affects cryptsetup versions up to but excluding 2.3.4.

4

How can I fix CVE-2020-14382?

To fix CVE-2020-14382, you need to update cryptsetup to version 2.3.4.

5

Where can I find more information about CVE-2020-14382?

More information about CVE-2020-14382 can be found at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203