cryptsetup: Out-of-bounds write when validating segments
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | cryptsetup | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
Configuration 3 [-]
|
Configuration 4 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | |||
| cryptsetup-0:2.3.3-2.el8 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2020:4542 | 2020-11-04T00:00:00Z |
| cryptsetup-0:2.3.3-2.el8 | cpe:/o:redhat:enterprise_linux:8 | RHSA-2020:4542 | 2020-11-04T00:00:00Z |
| Red Hat Enterprise Linux 8.1 Extended Update Support | |||
| cryptsetup-0:2.2.0-2.el8_1.1 | cpe:/a:redhat:rhel_eus:8.1 | RHSA-2020:4900 | 2020-11-04T00:00:00Z |
| Red Hat Enterprise Linux 8.2 Extended Update Support | |||
| cryptsetup-0:2.2.2-1.el8_2.1 | cpe:/a:redhat:rhel_eus:8.2 | RHSA-2021:0258 | 2021-01-26T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2020-6522 | 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. |
Ubuntu USN |
USN-4493-1 | cryptsetup vulnerability |
No CVSS v4.0
No CVSS v3.0
This CVE is not in the KEV list.
Exploit prediction score: 1.2% (1.157% probability within 30 days)
Key SSVC decision points have not yet been added.
No history.