Advisory

DEBIAN-CVE-2020-14382

Also known as: CVE-2020-14382

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2020-09-16 15:15 UTC
Modified
2026-10-26 12:02 UTC

Affected packages and fixes

cryptsetup

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 2:2.3.4-1 (ecosystem)

Fixed versions

2:2.3.4-1

Fix

  • Fixed version 2:2.3.4-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

cryptsetup

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 2:2.3.4-1 (ecosystem)

Fixed versions

2:2.3.4-1

Fix

  • Fixed version 2:2.3.4-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

cryptsetup

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 2:2.3.4-1 (ecosystem)

Fixed versions

2:2.3.4-1

Fix

  • Fixed version 2:2.3.4-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences