# CVE-2026-74568: KVM: arm64: vgic: Fix race between LPI release and re-registration

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

- **Severity:** CRITICAL 9.3
- **CVSS:** 9.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; 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.19% (percentile 5, 2026-11-26)
- **Published:** 2026-08-15T12:28:08.859Z
- **Modified:** 2026-10-16T20:17:38.310Z

## Who should check

- Anyone running Linux \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< f8e5715a37378ea1a140ee1162fa441e149c5142; \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< 292e80a159aa88635bf668a7212cfdf526b8bd52; \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< cbfe2b24a1ea9de35032dbdd100fdc700f5be92d
- Anyone running Linux 6.17

## Description

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

KVM: arm64: vgic: Fix race between LPI release and re-registration

Fix a potential race between decrementing an LPI's reference count and
evicting that structure from the LPI xarray.

LPI structures are maintained in the VGIC LPI xarray (dist-\>lpi\_xa).
When the reference count of an LPI structure drops to zero,
vgic\_release\_lpi\_locked() removes the structure from the xarray and
frees it under the xarray lock.

However, the release of an LPI can race with a concurrent LPI
re-registration with the same INTID via vgic\_add\_lpi() on another CPU,
since the reference count drop and the xarray eviction are not performed
in a single atomic step. This can happen e.g. if the guest issues a
DISCARD while the LPI is still referenced from a vCPU's active-pending
list (ap\_list), and the same INTID is re-mapped via MAPTI.

Particularly, vgic\_release\_lpi\_locked() is called from two distinct
paths: direct release via vgic\_put\_irq(), and deferred release via
vgic\_release\_deleted\_lpis(). During direct release, the issue can result
in deleting a newly registered LPI from the xarray:

  CPU0 (Releasing LPI)                    CPU1 (Adding new LPI)
  ====================                    =====================
  vgic\_put\_irq()
      \_\_vgic\_put\_irq()
          refcount\_dec\_and\_test()
                                          vgic\_add\_lpi()
                                              xa\_lock\_irqsave()
                                              old\_irq = xa\_load(.., intid)
                                              vgic\_try\_get\_irq\_ref(old\_irq) == false
                        new IRQ inserted --\>  \_\_xa\_store(.., intid, ..)
                                              xa\_unlock\_irqrestore()
  xa\_lock\_irqsave();
  vgic\_release\_lpi\_locked()
      \_\_xa\_erase(.., irq-\>intid)   \<-- BUG: new IRQ is erased
      kfree\_rcu(old\_irq)

During the deferred release path, the old IRQ can be leaked:

  CPU0 (Releasing LPI)                    CPU1 (Adding new LPI)
  ====================                    =====================
  vgic\_put\_irq\_norelease()
      \_\_vgic\_put\_irq()
          refcount\_dec\_and\_test()
      irq-\>pending\_release = true
                                          vgic\_add\_lpi()
                                              xa\_lock\_irqsave()
                                              old\_irq = xa\_load(.., intid)
                                              vgic\_try\_get\_irq\_ref(oldirq) == false
                 BUG: old IRQ overwritten --\> \_\_xa\_store(.., intid, ..)
                                              xa\_unlock\_irqrestore()

  vgic\_release\_deleted\_lpis()
      xa\_lock\_irqsave()
      xa\_for\_each() { .. } \<-- old IRQ with pending\_release = true
                               is gone, so it cannot be released

To fix the direct release path, move the reference count drop inside
the xarray lock, making sure that vgic\_add\_lpi() never encounters the
to-be-released LPI.

In the deferred release path, the refcount drop must happen under a raw
spinlock, so the xarray lock cannot be grabbed, and the same solution
does not work. Instead, update vgic\_add\_lpi(), so that if it evicts
an LPI from the xarray, it takes on the responsibility of freeing it.
Consequently, an LPI may now be freed concurrently after a deferred
release drops the refcount, so accessing the pending\_release field is no
longer safe from use-after-free. Delete all uses of the flag, and update
vgic\_release\_deleted\_lpis() to identify orphaned LPIs purely based on
their refcount.

## Affected and fixed versions

- Linux: \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< f8e5715a37378ea1a140ee1162fa441e149c5142; \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< 292e80a159aa88635bf668a7212cfdf526b8bd52; \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< cbfe2b24a1ea9de35032dbdd100fdc700f5be92d (cvelist)
- Linux: 6.17 (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-74568. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74568.md
Affected: Linux >= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, < f8e5715a37378ea1a140ee1162fa441e149c5142; >= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, < 292e80a159aa88635bf668a7212cfdf526b8bd52; >= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, < cbfe2b24a1ea9de35032dbdd100fdc700f5be92d; Linux 6.17
Fixed in: Linux 292e80a159aa88635bf668a7212cfdf526b8bd52

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

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

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

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

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

Linux \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< f8e5715a37378ea1a140ee1162fa441e149c5142; \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< 292e80a159aa88635bf668a7212cfdf526b8bd52; \>= 3a08a6ca7c373198c84e2a8c025c395ee966ff8a, \< cbfe2b24a1ea9de35032dbdd100fdc700f5be92d; Linux 6.17.

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

Yes. Fixed in Linux 292e80a159aa88635bf668a7212cfdf526b8bd52. No fix listed yet: follow the vendor advisory.

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

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/f8e5715a37378ea1a140ee1162fa441e149c5142>
- other: <https://git.kernel.org/stable/c/292e80a159aa88635bf668a7212cfdf526b8bd52>
- other: <https://git.kernel.org/stable/c/cbfe2b24a1ea9de35032dbdd100fdc700f5be92d>

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

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