Skip to contentSkip to conversation

CVE-2026-93238: s390/vfio-ap: fix potential use of uninitialized apm_filtered bitmap

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 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:

s390/vfio-ap: fix potential use of uninitialized apm_filtered bitmap

The DECLARE_BITMAP(apm_filtered, AP_DEVICES) macro allocates the bitmap on the stack without zero-initializing it.

In vfio_ap_mdev_hot_plug_cfg(), the vfio_ap_mdev_filter_matrix() function is only called to initialize and populate apm_filtered if either filter_adapters or filter_domains is true. If the hot plug configuration change only adds control domains (meaning filter_cdoms is true, but filter_adapters and filter_domains are both false), vfio_ap_mdev_filter_matrix() is bypassed.

Consequently, apm_filtered is passed to reset_queues_for_apids() with uninitialized stack garbage. This can cause reset_queues_for_apids() to interpret arbitrary stack garbage bits as valid APIDs to reset, potentially performing unintended guest hardware queue resets.

Fix this by zero-initializing the apm_filtered bitmap at the beginning of vfio_ap_mdev_hot_plug_cfg() using bitmap_zero().

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

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

	Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 6.6.157 with commit 4ba8a08f5f26ed59f356a6318bca3aa7cc0af3e2
	Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 6.12.110 with commit f73db632524320d2b93bc8534be8ea875053502d
	Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 6.18.51 with commit 6d554f2571e6b4db242593ba561efd6a6d1f99a9
	Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 7.2.5 with commit 09548edc6114f1eb1035b30795e893204ef45b85
	Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 7.3-rc1 with commit bf09b9d7cd7890bc3a3b7eb63d5ece15f88bfde7

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

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:

	drivers/s390/crypto/vfio_ap_ops.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/4ba8a08f5f26ed59f356a6318bca3aa7cc0af3e2
	https://git.kernel.org/stable/c/f73db632524320d2b93bc8534be8ea875053502d
	https://git.kernel.org/stable/c/6d554f2571e6b4db242593ba561efd6a6d1f99a9
	https://git.kernel.org/stable/c/09548edc6114f1eb1035b30795e893204ef45b85
	https://git.kernel.org/stable/c/bf09b9d7cd7890bc3a3b7eb63d5ece15f88bfde7