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.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade cryptsetup-libsUpgrade veritysetupUpgrade cryptsetupUpgrade cryptsetup-reencryptUpgrade integritysetupUpgrade cryptsetup-devel | May 4, 2022 | Sep 16, 2020 |
| Alpine Linux | — | Upgrade cryptsetup | Oct 22, 2020 | Sep 16, 2020 |
| Centos_linux | — | Upgrade cryptsetup-reencryptUpgrade cryptsetup-debuginfoUpgrade veritysetupUpgrade cryptsetup-debugsourceUpgrade cryptsetup-libs-debuginfoUpgrade integritysetupUpgrade integritysetup-debuginfoUpgrade cryptsetupUpgrade veritysetup-debuginfoUpgrade cryptsetup-develUpgrade cryptsetup-reencrypt-debuginfoUpgrade cryptsetup-libs | Nov 5, 2020 | Sep 16, 2020 |
| Debian | — | Upgrade cryptsetup | Jul 30, 2024 | Sep 16, 2020 |
| Echo Linux | — | Upgrade cryptsetup | Nov 12, 2026 | Sep 16, 2020 |
| Huawei Euleros 2_0_sp9 | — | Upgrade cryptsetup-reencryptUpgrade cryptsetup | Nov 3, 2020 | Sep 16, 2020 |
| Oracle_linux | — | Upgrade veritysetupUpgrade cryptsetup-libsUpgrade cryptsetupUpgrade cryptsetup-develUpgrade cryptsetup-reencryptUpgrade integritysetup | Nov 13, 2020 | Sep 3, 2020 |
| Redhat Openshift | — | Upgrade redhat-coreos | Mar 12, 2021 | Sep 16, 2020 |
| Redhat_linux | — | Upgrade veritysetup-debuginfoUpgrade cryptsetup-debuginfoUpgrade veritysetupUpgrade cryptsetup-debugsourceUpgrade cryptsetup-reencrypt-debuginfoUpgrade integritysetupUpgrade cryptsetup-reencryptUpgrade integritysetup-debuginfoUpgrade cryptsetup-develUpgrade cryptsetup-libs-debuginfoUpgrade cryptsetup-libsUpgrade cryptsetup | Nov 5, 2020 | Sep 16, 2020 |
| Suse | — | Upgrade libcryptsetup-develUpgrade cryptsetup-langUpgrade cryptsetupUpgrade libcryptsetup12-hmac-32bitUpgrade libcryptsetup12-32bitUpgrade libcryptsetup12-hmacUpgrade libcryptsetup12 | Feb 4, 2022 | Sep 14, 2020 |
| Ubuntu | — | Upgrade cryptsetup | Sep 15, 2020 | Sep 14, 2020 |
Prioritize with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub