CVE-2026-31543

crash_dump: don't log dm-crypt key bytes in read_key_from_user_keying

Published Apr 24, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

crash_dump: don't log dm-crypt key bytes in read_key_from_user_keying

When debug logging is enabled, read_key_from_user_keying() logs the first
8 bytes of the key payload and partially exposes the dm-crypt key. Stop
logging any key bytes.

Analysis

AI-generated

Technical impact

The flaw causes the kernel function read_key_from_user_keying() to write the first eight bytes of a dm‑crypt key to the debug trace whenever kernel debug logging is enabled. This results in the partial exposure of an otherwise protected encryption key, creating an information‑disclosure vulnerability classified as CWE‑215. The vulnerability does not impact application functionality directly but compromises the confidentiality of encrypted data stored by dm‑crypt by leaking key material.

Affected Systems

All Linux kernel builds containing the unpatched read_key_from_user_keying() function are affected, regardless of the distribution or vendor. The issue appears in the source code that was patched in the 7.0 releases. No specific version numbers are listed in the advisory, so any kernel version prior to the commit that removes the key logging is vulnerable.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity. An EPSS score of less than 1% suggests that practical exploitation is unlikely to be widespread. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker must have the ability to enable kernel debug logging and read the resulting trace logs, which typically requires elevated or kernel‑level privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the upstream patch that removes logging of dm‑crypt key bytes
  • Upgrade the system to a kernel release that incorporates this fix (e.g., recent Linux kernel 7.x updates)
  • If the patch cannot be applied, rebuild or configure the kernel to disable kernel debug logging to prevent key exposure
  • Restrict read access to kernel log files to limit the opportunity for an attacker to retrieve logged key bytes

Generated by OpenCVE AI on April 29, 2026 at 02:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-215
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: crash_dump: don't log dm-crypt key bytes in read_key_from_user_keying When debug logging is enabled, read_key_from_user_keying() logs the first 8 bytes of the key payload and partially exposes the dm-crypt key. Stop logging any key bytes.
Title crash_dump: don't log dm-crypt key bytes in read_key_from_user_keying
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 5, 2026, 9:45 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Analyzed
Published
Apr 24, 2026, 3:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 24, 2026, 12:00 AM