PT-2020-6853

CVE-2020-14382

·

Published

2019-12-13

·

Updated

2026-10-31

Description by

CVSS 2.0
9.3
High
MetricsAV:N/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions cryptsetup version 2.2.0
Description A bug was found in the LUKS2 format validation code of cryptsetup, specifically in the segments validation code in the hdr validate segments() function. This function is located in the file lib/luks2/luks2 json metadata.c. The issue arises from a lack of check for possible overflow on memory allocation used for the intervals array. As a result, the library can be tricked into expecting a successful allocation of less memory than originally expected. This can lead to reading data from a crafted image and writing it beyond the allocated memory, potentially allowing a remote attacker to access confidential data, compromise its integrity, and cause a denial of service.
Recommendations For cryptsetup version 2.2.0, consider disabling the hdr validate segments() function as a temporary workaround until a patch is available. Restrict access to the lib/luks2/luks2 json metadata.c module to minimize the risk of exploitation. Avoid using the intervals array in the affected function until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Impacts
Vendors
Affected products
Weakness enumeration
Related identifiers
ALT-PU-2019-3285
ALT-PU-2020-2083
ALT-PU-2020-3298
ALT-PU-2024-16854
CESA-2020_4542
CLEANSTART-2024-BL52322
OPENSUSE-SU-2024:10704-1
RHSA-2020:4542
RHSA-2020_4542
RHSA-2020:4900
RHSA-2021:0258
USN-4493-1
Found an issue in the description? Have something to add? Feel free to write us 👾