Home / Xen / Xen / CVE-2022-23040
CVE-2022-23040: is it exploited, and which versions of Xen are affected and fixed?
CVE-2022-23040 is a race condition vulnerability in Xen. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: xen all versions and debian linux 9.0 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.0, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:50 UTC.
What is CVE-2022-23040?
Linux PV device frontends vulnerable to attacks by backends T[his CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] Several Linux PV device frontends are using the grant table interfaces for removing access rights of the backends in ways being subject to race conditions, resulting in potential data leaks, data corruption by malicious backends, and denial of service triggered by malicious backends: blkfront, netfront, scsifront and the gntalloc driver are testing whether a grant reference is still in use. If this is not the case, they assume that a following removal of the granted access will always succeed, which is not true in case the backend has mapped the granted page between those two operations. As a result the backend can keep access to the memory page of the guest no matter how the page will be used after the frontend I/O has finished. The xenbus driver has a similar problem, as it doesn't check the success of removing the granted access of a shared ring buffer. blkfront: CVE-2022-23036 netfront: CVE-2022-23037 scsifront: CVE-2022-23038 gntalloc: CVE-2022-23039 xenbus: CVE-2022-23040 blkfront, netfront, scsifront, usbfront, dmabuf, xenbus, 9p, kbdfront, and pvcalls are using a functionality to delay freeing a grant reference until it is no longer in use, but the freeing of the related data page is not synchronized with dropping the granted access. As a result the backend can keep access to the memory page even after it has been freed and then re-used for a different purpose. CVE-2022-23041 netfront will fail a BUG_ON() assertion if it fails to revoke access in the rx path. This will result in a Denial of Service (DoS) situation of the guest which can be triggered by the backend. CVE-2022-23042
From the CVE record by XEN, last updated August 3, 2024, 03:28 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| xen | xen | all versions | operating system |
| debian | debian linux | 9.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:29 UTC.
How severe is CVE-2022-23040?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.0 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 4.4 | CVSS 2.0 | AV:L/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-23040 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.36% probability of exploitation activity in the next 30 days, percentile 32.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
Where are the vendor advisories and references?
- https://xenbits.xenproject.org/xsa/advisory-396.txt x_refsource_MISC
- [debian-lts-announce] 20220701 [SECURITY] [DLA 3065-1] linux security update mailing-list, x_refsource_MLIST
Who found and reported it?
- {'credit_data': {'description': {'description_data': [{'lang': 'eng', 'value': 'This issue was discovered by Demi Marie Obenour and Simon Gaiser of\nInvisible Things Lab.'}]}}} (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 10, 2022
- Published
- March 10, 2022, 19:20 UTC
- CVE record updated
- August 3, 2024, 03:28 UTC by XEN
- NVD
- Modified, last modified June 17, 2026, 04:29 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:50 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Xen?
- Dec 3, 2026CVE-2026-119781 Xen
- Dec 3, 2026CVE-2026-119782 Xen
- Dec 3, 2026CVE-2026-119783 Xen
- Nov 4, 2026CVE-2026-102703 Xen: incorrect type conversion
- Nov 4, 2026CVE-2026-102704 Xen: protection mechanism failure
- Oct 13, 2026CVE-2026-102700 Xen: resource not released
- Oct 13, 2026CVE-2026-102702 Xen: integer underflow
- Oct 13, 2026CVE-2026-102699 Xen: integer underflow
Questions about CVE-2022-23040
Is CVE-2022-23040 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.36% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Xen are affected by CVE-2022-23040?
xen all versions and debian linux 9.0, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2022-23040?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2022-23040?
High (7.0, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2022-23040?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.