# CVE-2025-40160: xen/events: Return -EEXIST for bound VIRQs

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-11-12T10:24:36.429Z
- **Modified:** 2026-10-30T13:18:14.127Z

## Who should check

- Anyone running Linux \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 7e19b3643855d4b63442bd20e8bb811e1a75998e; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 612ef6056855c0aacb9b25d1d853c435754483f7; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< a1e7f07ae6b594f1ba5be46c6125b43bc505c5aa; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< f81db055a793eca9d05f79658ff62adafb41d664; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 07ce121d93a5e5fb2440a24da3dbf408fcee978e
- Anyone running Linux 3.2

## Description

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

xen/events: Return -EEXIST for bound VIRQs

Change find\_virq() to return -EEXIST when a VIRQ is bound to a
different CPU than the one passed in.  With that, remove the BUG\_ON()
from bind\_virq\_to\_irq() to propogate the error upwards.

Some VIRQs are per-cpu, but others are per-domain or global.  Those must
be bound to CPU0 and can then migrate elsewhere.  The lookup for
per-domain and global will probably fail when migrated off CPU 0,
especially when the current CPU is tracked.  This now returns -EEXIST
instead of BUG\_ON().

A second call to bind a per-domain or global VIRQ is not expected, but
make it non-fatal to avoid trying to look up the irq, since we don't
know which per\_cpu(virq\_to\_irq) it will be in.

## Affected and fixed versions

- Linux: \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 7e19b3643855d4b63442bd20e8bb811e1a75998e; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 612ef6056855c0aacb9b25d1d853c435754483f7; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< a1e7f07ae6b594f1ba5be46c6125b43bc505c5aa; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< f81db055a793eca9d05f79658ff62adafb41d664; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 07ce121d93a5e5fb2440a24da3dbf408fcee978e (cvelist)
- Linux: 3.2 (cvelist)

## Mitigation

- Upgrade Linux to 07ce121d93a5e5fb2440a24da3dbf408fcee978e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40160.md
Affected: Linux >= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, < 7e19b3643855d4b63442bd20e8bb811e1a75998e; >= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, < 612ef6056855c0aacb9b25d1d853c435754483f7; >= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, < a1e7f07ae6b594f1ba5be46c6125b43bc505c5aa; >= 62cc5fc7b2e0218144e162a…
Fixed in: Linux 7e19b3643855d4b63442bd20e8bb811e1a75998e, Linux 612ef6056855c0aacb9b25d1d853c435754483f7, Linux 07ce121d93a5e5fb2440a24da3dbf408fcee978e

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-2025-40160 being exploited?

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

### How serious is CVE-2025-40160?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40160?

Linux \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 7e19b3643855d4b63442bd20e8bb811e1a75998e; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 612ef6056855c0aacb9b25d1d853c435754483f7; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< a1e7f07ae6b594f1ba5be46c6125b43bc505c5aa; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< f81db055a793eca9d05f79658ff62adafb41d664; \>= 62cc5fc7b2e0218144e162afb8191db9b924b5e6, \< 07ce121d93a5e5fb2440a24da3dbf408fcee978e; Linux 3.2.

### Is there a fix for CVE-2025-40160?

Yes. Fixed in Linux 7e19b3643855d4b63442bd20e8bb811e1a75998e, Linux 612ef6056855c0aacb9b25d1d853c435754483f7, Linux 07ce121d93a5e5fb2440a24da3dbf408fcee978e. Upgrade Linux to 07ce121d93a5e5fb2440a24da3dbf408fcee978e or later.

### How do I check if I'm affected by CVE-2025-40160?

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/7e19b3643855d4b63442bd20e8bb811e1a75998e>
- other: <https://git.kernel.org/stable/c/612ef6056855c0aacb9b25d1d853c435754483f7>
- other: <https://git.kernel.org/stable/c/a1e7f07ae6b594f1ba5be46c6125b43bc505c5aa>
- other: <https://git.kernel.org/stable/c/f81db055a793eca9d05f79658ff62adafb41d664>
- other: <https://git.kernel.org/stable/c/07ce121d93a5e5fb2440a24da3dbf408fcee978e>

## 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-2025-40160>

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