Title: CVE-2020-14382 Cryptsetup vulnerability in StarWind products

Note: StarWind will continue to update this vulnerability as new information becomes available.

Vulnerability ID: SW-20220819-0002

Version: 1.0

Date: 2022-08-19

Status: Final

CVEs: CVE-2020-14382

Summary

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.

Impact 

A bug in LUKS2 format validation code.

Vulnerability Scoring

CVE CVSS 2.0 Score CVSS 3.x Score
CVE-2020-14382 6.8 (MEDIUM) 7.8 (HIGH)

Vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References

Resource Hyperlink
NVD https://nvd.nist.gov/vuln/detail/CVE-2020-14382

 

Affected Products:

StarWind HCA with installed StarWind Command Center Version 1.0 Update 3 (build 5871)

Not affected products:

StarWind HCA with installed StarWind Command Center (all previous versions)

StarWind VSAN (all versions)

StarWind SAN&NAS (all versions)

StarWind VTLA (any setup)

StarWind VTL component (all versions for Windows Server)

StarWind V2V (all versions)

StarWind Tape Redirector component (all versions)

StarWind Deduplication Analyzer (all versions)

StarWind rPerf (all versions)

StarWind iSCSI Accelerator (all versions)

StarWind NVMe-oF Initiator (all versions)

StarWind SA (any setup)

Software Versions and Fixes

Fixed in StarWind HCA with installed StarWind Command Center Version 2.0 (build 7024)

Workaround

Update StarWind HCA with installed StarWind Command Center Version 2.0 (build 7024) or higher

Obtaining Software Fixes 

Software updates will be available in StarWind release notes – https://www.starwindsoftware.com/release-notes-build. To update the software, perform the steps described at the following link  – https://knowledgebase.starwindsoftware.com/guidance/upgrading-from-any-starwind-version-to-any-starwind-version/ or contact support to perform an update. You can submit a support request using the following link https://www.starwindsoftware.com/support-form or contact Support directly via email support@starwind.com or via phone +1 617 829 4499.

Status of Notice

Final

StarWind will continue to update information regarding this vulnerability as new details become available.

This vulnerability article should be considered as the single source of current, up-to-date, authorized and accurate information posted by StarWind Software.

Revision History 

Revision # Date Comments
1.0 2022-08-19 Initial Public Release and Final Status