# CVE-2026-89957: s390/vfio-ap: Fix hot-unplug skipped when last AP adapter or domain removed

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-09-16T10:32:40.546Z
- **Modified:** 2026-10-19T09:18:41.823Z

## Who should check

- Anyone running Linux \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< f58e824de8577fe411f6199d659731a0f86a7275; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 3a9b049bbdc40165d7f3e20b818eec95e5694d96; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 753aa3bb1273bc0d36adb013d5915cc8ff6b72a9; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< c45753c32d452d10d8efaeb52587e9e6e8126e33; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 04b35dd88c108b2d2ceaaa396aba1cb4049d5831; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 917f509bfb88048094dbb85c4e9dbc4d6fe4a886
- Anyone running Linux 6.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

s390/vfio-ap: Fix hot-unplug skipped when last AP adapter or domain removed

The vfio\_ap\_mdev\_hot\_unplug\_cfg() function uses the return value of
bitmap\_andnot() to determine whether the guest APCB needs to be updated.
However, bitmap\_andnot() returns false when the resulting destination
bitmap is empty. This means that if the only adapter, domain or control
domain assigned to an mdev is removed from the host's AP configuration,
the bit is correctly cleared from the shadow APCB, but bitmap\_andnot()
returns false because the result is an empty bitmap. Consequently,
do\_hotplug remains 0 and vfio\_ap\_mdev\_update\_guest\_apcb() is never called,
leaving the KVM guest with stale hardware access to the unplugged AP
devices.

Fix this by replacing the bitmap\_andnot() return value check with
bitmap\_intersects() to determine whether the shadow APCB actually
overlaps with the removal mask. If there is an intersection, call
bitmap\_andnot() solely for its side effect of clearing the bits, then
unconditionally set do\_hotplug to trigger the guest APCB update.

## Affected and fixed versions

- Linux: \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< f58e824de8577fe411f6199d659731a0f86a7275; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 3a9b049bbdc40165d7f3e20b818eec95e5694d96; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 753aa3bb1273bc0d36adb013d5915cc8ff6b72a9; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< c45753c32d452d10d8efaeb52587e9e6e8126e33; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 04b35dd88c108b2d2ceaaa396aba1cb4049d5831; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 917f509bfb88048094dbb85c4e9dbc4d6fe4a886 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 917f509bfb88048094dbb85c4e9dbc4d6fe4a886 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89957. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89957.md
Affected: Linux >= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, < f58e824de8577fe411f6199d659731a0f86a7275; >= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, < 3a9b049bbdc40165d7f3e20b818eec95e5694d96; >= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, < 753aa3bb1273bc0d36adb013d5915cc8ff6b72a9; >= eeb386aeb5b7c8d2dae6a3b…
Fixed in: Linux 3a9b049bbdc40165d7f3e20b818eec95e5694d96, Linux 753aa3bb1273bc0d36adb013d5915cc8ff6b72a9, Linux 04b35dd88c108b2d2ceaaa396aba1cb4049d5831, Linux 917f509bfb88048094dbb85c4e9dbc4d6fe4a886

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89957 being exploited?

There is no confirmed exploitation: CVE-2026-89957 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89957?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-89957?

Linux \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< f58e824de8577fe411f6199d659731a0f86a7275; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 3a9b049bbdc40165d7f3e20b818eec95e5694d96; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 753aa3bb1273bc0d36adb013d5915cc8ff6b72a9; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< c45753c32d452d10d8efaeb52587e9e6e8126e33; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 04b35dd88c108b2d2ceaaa396aba1cb4049d5831; \>= eeb386aeb5b7c8d2dae6a3ba49255d8a97803182, \< 917f509bfb88048094dbb85c4e9dbc4d6fe4a886; Linux 6.0.

### Is there a fix for CVE-2026-89957?

Yes. Fixed in Linux 3a9b049bbdc40165d7f3e20b818eec95e5694d96, Linux 753aa3bb1273bc0d36adb013d5915cc8ff6b72a9, Linux 04b35dd88c108b2d2ceaaa396aba1cb4049d5831, Linux 917f509bfb88048094dbb85c4e9dbc4d6fe4a886. Upgrade Linux to 917f509bfb88048094dbb85c4e9dbc4d6fe4a886 or later.

### How do I check if I'm affected by CVE-2026-89957?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f58e824de8577fe411f6199d659731a0f86a7275>
- other: <https://git.kernel.org/stable/c/3a9b049bbdc40165d7f3e20b818eec95e5694d96>
- other: <https://git.kernel.org/stable/c/753aa3bb1273bc0d36adb013d5915cc8ff6b72a9>
- other: <https://git.kernel.org/stable/c/c45753c32d452d10d8efaeb52587e9e6e8126e33>
- other: <https://git.kernel.org/stable/c/04b35dd88c108b2d2ceaaa396aba1cb4049d5831>
- other: <https://git.kernel.org/stable/c/917f509bfb88048094dbb85c4e9dbc4d6fe4a886>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89957>

HTML: <https://flawdb.com/CVE-2026-89957> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89957>
