Constant-Time Key Printing Vulnerability in dm crypt

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003915: dm crypt: make printing of the key constant-time. Affects Kernel versions < 0b17dc17216796560edc4aa2fe04d43af0f6e233. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The dm crypt package is a component of the Linux Kernel that provides transparent disk encryption for block devices. It allows users to create encrypted volumes and mount them as regular file systems. The package utilizes the cryptographic capabilities of the kernel to encrypt and decrypt data on-the-fly. However, a vulnerability has been discovered in the way dm crypt handles the printing of encryption keys, which can potentially lead to information disclosure.

Vulnerability Detail

The vulnerability in dm crypt arises from the lack of constant-time implementation when printing encryption keys. By observing the timing differences in the printing process, an attacker may be able to infer sensitive information about the encryption key, such as its length or specific characters. This information could be exploited to launch further attacks, such as brute-forcing the key or bypassing the encryption altogether. The vulnerability has been addressed in Linux Kernel version v4.19.246 by commit 0b17dc17216796560edc4aa2fe04d43af0f6e233.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can avoid printing encryption keys by modifying their scripts or configurations to suppress key output. This can be achieved by redirecting the output to a null device or modifying the code to skip the printing step altogether. However, it is important to note that this workaround does not address the underlying vulnerability and should only be considered as a temporary measure until the kernel update can be applied.

Conclusion

In conclusion, the constant-time key printing vulnerability in dm crypt can potentially lead to information disclosure and other security risks. It is crucial to update the Linux Kernel to the fixed version and review any custom configurations or scripts that interact with dm crypt. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

dm crypt is a component of the Linux Kernel that provides transparent disk encryption for block devices. It allows users to create encrypted volumes and mount them as regular file systems.

The vulnerability in dm crypt can potentially lead to information disclosure, as an attacker may be able to infer sensitive information about the encryption key by observing timing differences in the printing process. This information could be exploited to launch further attacks.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.246 or later. This can be done by pulling the latest updates from the official Linux Kernel repository and rebuilding the kernel.

As a workaround, users can modify their scripts or configurations to suppress key output. This can be achieved by redirecting the output to a null device or modifying the code to skip the printing step altogether. However, it is important to note that this workaround does not address the underlying vulnerability and should only be considered as a temporary measure.

For more information about this vulnerability, you can refer to the official Linux Kernel repository and the commit 0b17dc17216796560edc4aa2fe04d43af0f6e233.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback