Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98473 Overview
CVE-2026-98473 is a resource management vulnerability in the Linux kernel's s390/vfio-ap driver. The flaw affects the handling of KVM interrupt and page resources when an AP (Adjunct Processor) queue is removed from the host's AP configuration while assigned to a mediated device (mdev). Three distinct problems result in leaks of KVM Guest Interrupt State Control (GISC) registrations and pinned guest pages holding the Notification Indicator Byte (NIB). An additional defect creates a potential double-free condition when the KVM pointer is NULL during cleanup. The vulnerability is specific to the IBM Z (s390) architecture using cryptographic adapter passthrough to KVM guests.
Critical Impact
Kernel memory and pinned guest page leaks in the s390 vfio-ap driver can lead to resource exhaustion and a potential double-free condition during cleanup paths.
Affected Products
- Linux kernel (s390 architecture, drivers/s390/crypto/vfio_ap_ops.c)
- Systems using vfio-ap for AP cryptographic adapter passthrough to KVM guests
- IBM Z and LinuxONE platforms running affected kernel versions
Discovery Timeline
- 2026-10-18 - CVE-2026-98473 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98473
Vulnerability Analysis
The vulnerability resides in the vfio-ap mediated device driver on s390. Three related defects affect queue removal and reset handling. First, vfio_ap_mdev_reset_queue() does not handle the AP_RESPONSE_Q_NOT_AVAIL (0x01) response code returned by ap_zapq() when a queue's adapter or domain has already been removed from the host configuration. The unhandled response falls into the default case and bypasses vfio_ap_free_aqic_resources().
Second, apq_status_check() similarly lacks a case for AP_RESPONSE_Q_NOT_AVAIL. When invoked from the apq_reset_check() work queue to verify reset completion, the missing branch allows the same resource cleanup to be skipped.
Third, vfio_ap_free_aqic_resources() guards the call to kvm_s390_gisc_unregister() with a combined check that includes matrix_mdev->kvm. When vfio_ap_mdev_unset_kvm() has already cleared kvm to NULL, the WARN_ON fires and the entire block is skipped. This leaves q->saved_isc set to a non-invalid value, enabling a potential double-free on subsequent cleanup.
Root Cause
The root cause is incomplete error-path handling in the vfio-ap driver. Response codes that indicate a non-operational queue are not uniformly treated as terminal states that require immediate release of KVM GISC registrations and pinned guest pages. The coupling of kvm_s390_gisc_unregister() and the saved_isc reset in a single guarded block creates an unsafe invariant when kvm is NULL.
Attack Vector
Triggering the leak requires removal of an AP adapter or domain from the host configuration while the queue is assigned to a mediated device with IRQ handling enabled by the guest. Repeated removal and reassignment of AP resources on a host with configured vfio-ap mdevs can accumulate leaked GISC registrations and pinned guest pages. The double-free path can be reached through cleanup sequences where kvm has already been cleared. See the upstream fixes referenced in the Kernel Git Commit 3c34336 and Kernel Git Commit da69d3a for technical details.
// No verified exploit code available. The upstream patches add
// AP_RESPONSE_Q_NOT_AVAIL handling to vfio_ap_mdev_reset_queue()
// and apq_status_check(), and separate the kvm_s390_gisc_unregister()
// call from the q->saved_isc = VFIO_AP_ISC_INVALID assignment.
Detection Methods for CVE-2026-98473
Indicators of Compromise
- Kernel WARN_ON messages originating from vfio_ap_mdev_reset_queue() or vfio_ap_free_aqic_resources() in dmesg
- Unexpected growth in pinned guest memory on s390 KVM hosts running vfio-ap mediated devices
- Repeated AP adapter or domain reconfiguration events coinciding with mdev-assigned queues
Detection Strategies
- Audit running kernel versions on s390 hosts against distribution advisories referencing CVE-2026-98473
- Monitor kernel logs for vfio_ap warnings and AP_RESPONSE_Q_NOT_AVAIL conditions during AP reconfiguration
- Correlate KVM guest shutdown events with host AP configuration changes to identify affected cleanup paths
Monitoring Recommendations
- Collect kernel ring buffer telemetry from s390 KVM hosts and alert on vfio_ap subsystem warnings
- Track GISC registration counts and pinned page accounting over time to identify monotonic growth
- Review hypervisor change windows that include AP adapter removal while guests are running
How to Mitigate CVE-2026-98473
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in the Kernel Git commits once your distribution publishes a fixed package
- Inventory s390 KVM hosts using vfio-ap passthrough and prioritize them for patching
- Avoid runtime removal of AP adapters or domains from the host configuration while mdevs are in use until patches are applied
Patch Information
Fixes are available in the upstream stable tree. See Kernel Git Commit 3c34336, Kernel Git Commit 65e05ec, Kernel Git Commit cf441a0, and Kernel Git Commit da69d3a. The fixes add AP_RESPONSE_Q_NOT_AVAIL handling to vfio_ap_mdev_reset_queue() and apq_status_check(), separate the kvm_s390_gisc_unregister() call from the q->saved_isc reset, and add an explicit vfio_ap_free_aqic_resources() call in vfio_ap_mdev_remove_queue() when the queue is no longer in the host AP configuration.
Workarounds
- Restrict changes to the host AP configuration while guests with assigned mdevs are running
- Schedule guest shutdown prior to administrative removal of AP adapters or domains
- Reboot affected hosts to clear accumulated leaked GISC registrations and pinned pages until patches are deployed
# Verify running kernel version and vfio-ap module status on s390 hosts
uname -r
lsmod | grep vfio_ap
dmesg | grep -i vfio_ap
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

