Skip to contentSkip to conversation

CVE-2026-89926: KVM: s390: Fix length check __import_wp_info()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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: Fix length check __import_wp_info()

struct kvm_hw_breakpoint::len is a __u64 that is fully controlled by user space. This is then assigned to wp_info->len, which is an int. The bounds check is done on the truncated value while the allocation uses the untruncated one:

	wp_info->len = bp_data->len;
	[...]
	if (wp_info->len < 0 || wp_info->len > MAX_WP_SIZE)
		return -EINVAL;

	wp_info->old_data = kmalloc(bp_data->len, GFP_KERNEL_ACCOUNT);

Use the validated value for the allocation as intended. Without this fix userspace can trigger >4GB allocations which will fail and result in a WARN due to MAX_PAGE_ORDER.

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

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

	Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 5.15.221 with commit aef540194effd768bed0bd2e6a74fe135a3d7c3a
	Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.1.188 with commit 71153d3262517e1c02c3a66aa5094f279b2d1454
	Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.6.157 with commit fec89d327d9b2b669b5bbdac209386c6317c3722
	Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.12.110 with commit b94ab9caa5d72c78226121cccff5e33f946da900
	Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.18.51 with commit beb9c55af609c4c7308259d7191688c75a4e3d4a
	Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 7.2.5 with commit 3fe801db90bdeefb0bbdda42d832846b53f64f8a
	Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 7.3-rc1 with commit 4c07680a467e2f7697245bcd11691bffb2a6f0ed

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

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/guestdbg.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/aef540194effd768bed0bd2e6a74fe135a3d7c3a
	https://git.kernel.org/stable/c/71153d3262517e1c02c3a66aa5094f279b2d1454
	https://git.kernel.org/stable/c/fec89d327d9b2b669b5bbdac209386c6317c3722
	https://git.kernel.org/stable/c/b94ab9caa5d72c78226121cccff5e33f946da900
	https://git.kernel.org/stable/c/beb9c55af609c4c7308259d7191688c75a4e3d4a
	https://git.kernel.org/stable/c/3fe801db90bdeefb0bbdda42d832846b53f64f8a
	https://git.kernel.org/stable/c/4c07680a467e2f7697245bcd11691bffb2a6f0ed