CVE-2024-26620·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: s390/vfio-ap: always filter entire AP matrix The vfio_ap_mdev_filter_matrix function is called whenever a new adapter or domain is assigned to the mdev. The purpose of the function is to update the guest's AP configuration by filtering the matrix of adapters and domains assigned to the mdev. When an adapter or domain is assigned, only the APQNs associated with the APID of the new adapter or APQI of the new domain are inspected. If an APQN does not reference a queue device bound to the vfio_ap device driver, then it's APID will be filtered from the mdev's matrix when updating the guest's AP configuration. Inspecting only the APID of the new adapter or APQI of the new domain will result in passing AP queues through to a guest that are not bound to the vfio_ap device driver under certain circumstances. Consider the following: guest's AP configuration (all also assigned to the mdev's matrix): 14.0004 14.0005 14.0006 16.0004 16.0005 16.0006 unassign domain 4 unbind queue 16.0005 assign domain 4 When domain 4 is re-assigned, since only domain 4 will be inspected, the APQNs that will be examined will be: 14.0004 16.0004 Since both of those APQNs reference queue devices that are bound to the vfio_ap device driver, nothing will get filtered from the mdev's matrix when updating the guest's AP configuration. Consequently, queue 16.0005 will get passed through despite not being bound to the driver. This violates the linux device model requirement that a guest shall only be given access to devices bound to the device driver facilitating their pass-through. To resolve this problem, every adapter and domain assigned to the mdev will be inspected when filtering the mdev's matrix.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.3
- Published
- 2024-03-11
Affected versions
From: 6.7
Until: 6.7.3
Fixed in: 6.7.3
How to fix this CVE
Update your Linux kernel to version 6.7.3 or later to resolve the AP matrix filtering vulnerability in s390/vfio-ap. This patch ensures that all adapters and domains are properly inspected when filtering the matrix, preventing unbound AP queues from being incorrectly passed through to guest virtual machines. Kernel upgrades typically require a system reboot to take effect.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r (should be 6.7.3 or higher for affected s390 systems)
- Verify if vfio-ap module is loaded: lsmod | grep vfio_ap (vulnerability only affects systems using AP pass-through)
- Review vfio-ap device bindings: ls -la /sys/bus/ap/drivers/vfio_ap/ to list assigned AP queues
- Confirm fix is applied by checking kernel build date: cat /proc/version and verify it matches or exceeds the 6.7.3 release date (January 2024)
FAQ
What is CVE-2024-26620?
This is a Linux kernel vulnerability in the s390/vfio-ap driver that causes incomplete filtering of AP (Adjunct Processor) matrix configurations. When adapters or domains are reassigned to a virtual machine, the driver may fail to filter out AP queues that are not bound to the vfio_ap device driver, allowing guest access to unmanaged hardware devices.
Is CVE-2024-26620 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, it poses a device model violation risk in s390 virtualization environments.
What versions of Kernel are affected by CVE-2024-26620?
Linux kernel versions 6.7 through 6.7.3 are affected. The vulnerability was resolved in kernel 6.7.3 and later.
How do I check if my server is vulnerable to CVE-2024-26620?
Run `uname -r` to check your kernel version—if it shows 6.7.0 through 6.7.2 on an s390 system with vfio-ap enabled (`lsmod | grep vfio_ap`), your system is vulnerable. Update to 6.7.3 or later to remediate.
Does Defensia detect CVE-2024-26620?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-26620 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/850fb7fa8c684a4c6bf0e4b6978f4ddcc5d43d11
- https://git.kernel.org/stable/c/c69d821197611678533fb3eb784fc823b921349a
- https://git.kernel.org/stable/c/cdd134d56138302976685e6c7bc4755450b3880e
- https://git.kernel.org/stable/c/d6b8d034b576f406af920a7bee81606c027b24c6
- https://git.kernel.org/stable/c/850fb7fa8c684a4c6bf0e4b6978f4ddcc5d43d11
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-26620. Free for 1 server.
Get started free