CVE-2026-89959: s390/vfio-ap: Fix control domain removal in vfio_ap_mdev_cfg_remove
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/vfio-ap: Fix control domain removal in vfio_ap_mdev_cfg_remove
The vfio_ap_config_remove function uses the bitmap_andnot function to clear bits from the matrix_mdev->matrix.adm bitmap (specifies the control domains assigned to the mdev). This prevents the explicitly unplugged control domains from being removed the KVM guest. The bitmap_and function is used instead.
The Linux kernel CVE team has assigned CVE-2026-89959 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 6.1.188 with commit 12871a4269f139221c9fde9ea3eb69c9228f59d4 Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 6.6.157 with commit 02e72909453dee2f8a09f78819f9a9cb902dfbdc Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 6.12.110 with commit 4bffadde7fc49b00493fb78c6376f958998d4b8c Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 6.18.51 with commit f7d66afc34bc6e833c8ebe56973afec35f473bc1 Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 7.2.5 with commit 2ff68bf414de167bc138e6e211ee1ad3ab3c5052 Issue introduced in 6.0 with commit eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 and fixed in 7.3-rc1 with commit 6b8a02e216f6b520cc029e43ddc83956605135d5
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-89959
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/12871a4269f139221c9fde9ea3eb69c9228f59d4 https://git.kernel.org/stable/c/02e72909453dee2f8a09f78819f9a9cb902dfbdc https://git.kernel.org/stable/c/4bffadde7fc49b00493fb78c6376f958998d4b8c https://git.kernel.org/stable/c/f7d66afc34bc6e833c8ebe56973afec35f473bc1 https://git.kernel.org/stable/c/2ff68bf414de167bc138e6e211ee1ad3ab3c5052 https://git.kernel.org/stable/c/6b8a02e216f6b520cc029e43ddc83956605135d5