Skip to contentSkip to conversation

CVE-2026-98651: KVM: s390: Properly handle NULL pointer in dat_cond_set_storage_key()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

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

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

KVM: s390: Properly handle NULL pointer in dat_cond_set_storage_key()

Some callers pass NULL as oldkey. Calling page_cond_set_storage_key() will cause that NULL pointer to get dereferenced.

Fix by checking for NULL and assigning the pointer to a dummy local variable to avoid crashes.

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

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

	Issue introduced in 7.0 with commit 8e03e8316eb242af307d1c789d09f1a1457cf9a3 and fixed in 7.2.9 with commit 75867536746ab2d034488a6a93ee6cde83553342
	Issue introduced in 7.0 with commit 8e03e8316eb242af307d1c789d09f1a1457cf9a3 and fixed in 7.3-rc1 with commit 88e22ffd1e46b95e40a6afabe486deb1d31a3ae1

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-98651

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:

	arch/s390/kvm/dat.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/75867536746ab2d034488a6a93ee6cde83553342
	https://git.kernel.org/stable/c/88e22ffd1e46b95e40a6afabe486deb1d31a3ae1