Skip to contentSkip to conversation

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

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-31543 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.16 with commit 479e58549b0fa7e80f1e0b9e69e0a2a8e6711132 and fixed in 6.18.20 with commit 4897bd307ba8757c31a3325ba6730961be606016
	Issue introduced in 6.16 with commit 479e58549b0fa7e80f1e0b9e69e0a2a8e6711132 and fixed in 6.19.10 with commit ed8d91f469845d62d44c565a55d2ab1767969357
	Issue introduced in 6.16 with commit 479e58549b0fa7e80f1e0b9e69e0a2a8e6711132 and fixed in 7.0 with commit 36f46b0e36892eba08978eef7502ff3c94ddba77

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-31543

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
kernel/crash_dump_dm_crypt.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4897bd307ba8757c31a3325ba6730961be606016
	https://git.kernel.org/stable/c/ed8d91f469845d62d44c565a55d2ab1767969357
	https://git.kernel.org/stable/c/36f46b0e36892eba08978eef7502ff3c94ddba77