# KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region()

CVE record · `CVE-2024-35791`

- **Identifiers:** `CVE-2024-35791`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 17 May 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 17 May 2024, 12:24 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `4f627ecde7329e476a077bb0590db8f27bb8f912 to before 2d13b79640b147bd77c34a5998533b2021a4122d` (git)
  - affected: `19a23da53932bc8011220bd8c410cb76012de004 to before e126b508ed2e616d679d85fca2fbe77bb48bbdd7` (git)
  - affected: `19a23da53932bc8011220bd8c410cb76012de004 to before 4868c0ecdb6cfde7c70cf478c46e06bb9c7e5865` (git)
  - affected: `19a23da53932bc8011220bd8c410cb76012de004 to before 12f8e32a5a389a5d58afc67728c76e61beee1ad4` (git)
  - affected: `19a23da53932bc8011220bd8c410cb76012de004 to before f6d53d8a2617dd58c89171a6b9610c470ebda38a` (git)
  - affected: `19a23da53932bc8011220bd8c410cb76012de004 to before 5ef1d8c1ddbf696e47b226e11888eaf8d9e8e807` (git)
  - affected: `f1ecde00ce1694597f923f0d25f7a797c5243d99` (git)
  - affected: `848bcb0a1d96f67d075465667d3a1ad4af56311e` (git)
  - affected: `5.10.15 to before 5.10.215` (semver)
  - affected: `4.19.176 to before 4.20` (semver)
  - affected: `5.4.98 to before 5.5` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.11`
  - unaffected: `before 5.11` (semver)
  - unaffected: `5.10.215 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.154 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.84 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.24 to 6.6.*, inclusive` (semver)
  - unaffected: `6.7.12 to 6.7.*, inclusive` (semver)
  - unaffected: `6.8 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 14th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 17 May 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-35791](https://www.cve.org/CVERecord?id=CVE-2024-35791)
- [NVD: CVE-2024-35791](https://nvd.nist.gov/vuln/detail/CVE-2024-35791)

### References from the CNA

- <https://git.kernel.org/stable/c/2d13b79640b147bd77c34a5998533b2021a4122d>
- <https://git.kernel.org/stable/c/e126b508ed2e616d679d85fca2fbe77bb48bbdd7>
- <https://git.kernel.org/stable/c/4868c0ecdb6cfde7c70cf478c46e06bb9c7e5865>
- <https://git.kernel.org/stable/c/12f8e32a5a389a5d58afc67728c76e61beee1ad4>
- <https://git.kernel.org/stable/c/f6d53d8a2617dd58c89171a6b9610c470ebda38a>
- <https://git.kernel.org/stable/c/5ef1d8c1ddbf696e47b226e11888eaf8d9e8e807>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-35791>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-35791/>. Everything for agents: <https://agentprime.io/llms.txt>.
