# CVE-2026-23198: KVM: Don't clobber irqfd routing type when deassigning irqfd

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; 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.22% (percentile 8, 2026-11-28)
- **CWE:** CWE-476, CWE-416
- **Published:** 2026-02-14T16:27:23.621Z
- **Modified:** 2026-10-19T19:17:41.317Z

## Who should check

- Anyone running Linux \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 959a063e7f12524bc1871ad1f519787967bbcd45; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 2284bc168b148a17b5ca3b37b3d95c411f18a08d; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 6d14ba1e144e796b5fc81044f08cfba9024ca195; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< b61f9b2fcf181451d0a319889478cc53c001123e; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< ff48c9312d042bfbe826ca675e98acc6c623211c; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 4385b2f2843549bfb932e0dcf76bf4b065543a3c; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< b4d37cdb77a0015f51fee083598fa227cc07aaf1
- Anyone running Linux 4.4

## Description

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

KVM: Don't clobber irqfd routing type when deassigning irqfd

When deassigning a KVM\_IRQFD, don't clobber the irqfd's copy of the IRQ's
routing entry as doing so breaks kvm\_arch\_irq\_bypass\_del\_producer() on x86
and arm64, which explicitly look for KVM\_IRQ\_ROUTING\_MSI.  Instead, to
handle a concurrent routing update, verify that the irqfd is still active
before consuming the routing information.  As evidenced by the x86 and
arm64 bugs, and another bug in kvm\_arch\_update\_irqfd\_routing() (see below),
clobbering the entry type without notifying arch code is surprising and
error prone.

As a bonus, checking that the irqfd is active provides a convenient
location for documenting \_why\_ KVM must not consume the routing entry for
an irqfd that is in the process of being deassigned: once the irqfd is
deleted from the list (which happens \*before\* the eventfd is detached), it
will no longer receive updates via kvm\_irq\_routing\_update(), and so KVM
could deliver an event using stale routing information (relative to
KVM\_SET\_GSI\_ROUTING returning to userspace).

As an even better bonus, explicitly checking for the irqfd being active
fixes a similar bug to the one the clobbering is trying to prevent: if an
irqfd is deactivated, and then its routing is changed,
kvm\_irq\_routing\_update() won't invoke kvm\_arch\_update\_irqfd\_routing()
(because the irqfd isn't in the list).  And so if the irqfd is in bypass
mode, IRQs will continue to be posted using the old routing information.

As for kvm\_arch\_irq\_bypass\_del\_producer(), clobbering the routing type
results in KVM incorrectly keeping the IRQ in bypass mode, which is
especially problematic on AMD as KVM tracks IRQs that are being posted to
a vCPU in a list whose lifetime is tied to the irqfd.

Without the help of KASAN to detect use-after-free, the most common
sympton on AMD is a NULL pointer deref in amd\_iommu\_update\_ga() due to
the memory for irqfd structure being re-allocated and zeroed, resulting
in irqfd-\>irq\_bypass\_data being NULL when read by
avic\_update\_iommu\_vcpu\_affinity():

  BUG: kernel NULL pointer dereference, address: 0000000000000018
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 40cf2b9067 P4D 40cf2b9067 PUD 408362a067 PMD 0
  Oops: Oops: 0000 \[\#1\] SMP
  CPU: 6 UID: 0 PID: 40383 Comm: vfio\_irq\_test
  Tainted: G     U  W  O        6.19.0-smp--5dddc257e6b2-irqfd \#31 NONE
  Tainted: \[U\]=USER, \[W\]=WARN, \[O\]=OOT\_MODULE
  Hardware name: Google, Inc. Arcadia\_IT\_80/Arcadia\_IT\_80, BIOS 34.78.2-0 09/05/2025
  RIP: 0010:amd\_iommu\_update\_ga+0x19/0xe0
  Call Trace:
   \<TASK\>
   avic\_update\_iommu\_vcpu\_affinity+0x3d/0x90 \[kvm\_amd\]
   \_\_avic\_vcpu\_load+0xf4/0x130 \[kvm\_amd\]
   kvm\_arch\_vcpu\_load+0x89/0x210 \[kvm\]
   vcpu\_load+0x30/0x40 \[kvm\]
   kvm\_arch\_vcpu\_ioctl\_run+0x45/0x620 \[kvm\]
   kvm\_vcpu\_ioctl+0x571/0x6a0 \[kvm\]
   \_\_se\_sys\_ioctl+0x6d/0xb0
   do\_syscall\_64+0x6f/0x9d0
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
  RIP: 0033:0x46893b
    \</TASK\>
  ---\[ end trace 0000000000000000 \]---

If AVIC is inhibited when the irfd is deassigned, the bug will manifest as
list corruption, e.g. on the next irqfd assignment.

  list\_add corruption. next-\>prev should be prev (ffff8d474d5cd588),
                       but was 0000000000000000. (next=ffff8d8658f86530).
  ------------\[ cut here \]------------
  kernel BUG at lib/list\_debug.c:31!
  Oops: invalid opcode: 0000 \[\#1\] SMP
  CPU: 128 UID: 0 PID: 80818 Comm: vfio\_irq\_test
  Tainted: G     U  W  O        6.19.0-smp--f19dc4d680ba-irqfd \#28 NONE
  Tainted: \[U\]=USER, \[W\]=WARN, \[O\]=OOT\_MODULE
  Hardware name: Google, Inc. Arcadia\_IT\_80/Arcadia\_IT\_80, BIOS 34.78.2-0 09/05/2025
  RIP: 0010:\_\_list\_add\_valid\_or\_report+0x97/0xc0
  Call Trace:
   \<TASK\>
   avic\_pi\_update\_irte+0x28e/0x2b0 \[kvm\_amd\]
   kvm\_pi\_update\_irte+0xbf/0x190 \[kvm\]
   kvm\_arch\_irq\_bypass\_add\_producer+0x72/0x90 \[kvm\]
   irq\_bypass\_register\_consumer+0xcd/0x170 \[irqbypa
---truncated---

## Affected and fixed versions

- Linux: \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 959a063e7f12524bc1871ad1f519787967bbcd45; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 2284bc168b148a17b5ca3b37b3d95c411f18a08d; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 6d14ba1e144e796b5fc81044f08cfba9024ca195; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< b61f9b2fcf181451d0a319889478cc53c001123e; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< ff48c9312d042bfbe826ca675e98acc6c623211c; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 4385b2f2843549bfb932e0dcf76bf4b065543a3c; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< b4d37cdb77a0015f51fee083598fa227cc07aaf1 (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23198.md
Affected: Linux >= f70c20aaf141adb715a2d750c55154073b02a9c3, < 959a063e7f12524bc1871ad1f519787967bbcd45; >= f70c20aaf141adb715a2d750c55154073b02a9c3, < 2284bc168b148a17b5ca3b37b3d95c411f18a08d; >= f70c20aaf141adb715a2d750c55154073b02a9c3, < 6d14ba1e144e796b5fc81044f08cfba9024ca195; >= f70c20aaf141adb715a2d75…
Fixed in: Linux 959a063e7f12524bc1871ad1f519787967bbcd45, Linux 2284bc168b148a17b5ca3b37b3d95c411f18a08d, Linux 6d14ba1e144e796b5fc81044f08cfba9024ca195, Linux 4385b2f2843549bfb932e0dcf76bf4b065543a3c

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-23198 being exploited?

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

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

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

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

Linux \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 959a063e7f12524bc1871ad1f519787967bbcd45; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 2284bc168b148a17b5ca3b37b3d95c411f18a08d; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 6d14ba1e144e796b5fc81044f08cfba9024ca195; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< b61f9b2fcf181451d0a319889478cc53c001123e; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< ff48c9312d042bfbe826ca675e98acc6c623211c; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< 4385b2f2843549bfb932e0dcf76bf4b065543a3c; \>= f70c20aaf141adb715a2d750c55154073b02a9c3, \< b4d37cdb77a0015f51fee083598fa227cc07aaf1; Linux 4.4.

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

Yes. Fixed in Linux 959a063e7f12524bc1871ad1f519787967bbcd45, Linux 2284bc168b148a17b5ca3b37b3d95c411f18a08d, Linux 6d14ba1e144e796b5fc81044f08cfba9024ca195, Linux 4385b2f2843549bfb932e0dcf76bf4b065543a3c. No fix listed yet: follow the vendor advisory.

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

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

- patch: <https://git.kernel.org/stable/c/959a063e7f12524bc1871ad1f519787967bbcd45>
- patch: <https://git.kernel.org/stable/c/2284bc168b148a17b5ca3b37b3d95c411f18a08d>
- patch: <https://git.kernel.org/stable/c/6d14ba1e144e796b5fc81044f08cfba9024ca195>
- patch: <https://git.kernel.org/stable/c/b61f9b2fcf181451d0a319889478cc53c001123e>
- patch: <https://git.kernel.org/stable/c/ff48c9312d042bfbe826ca675e98acc6c623211c>
- patch: <https://git.kernel.org/stable/c/4385b2f2843549bfb932e0dcf76bf4b065543a3c>
- patch: <https://git.kernel.org/stable/c/b4d37cdb77a0015f51fee083598fa227cc07aaf1>

## 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-23198>

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