# CVE-2024-46830: KVM: x86: Acquire kvm-\>srcu when handling KVM\_SET\_VCPU\_EVENTS

> 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.33% (percentile 18, 2026-11-26)
- **Published:** 2024-09-27T12:39:28.396Z
- **Modified:** 2026-08-05T11:38:52.433Z

## Who should check

- Anyone running Linux \>= e302786233e6bc512986d007c96458ccf5ca21c7, \< 5f35099fa3d59caf10bda88b033538e90086684e; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< fa297c33faefe51e10244e8a378837fca4963228; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< 939375737b5a0b1bf9b1e75129054e11bc9ca65e; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< ecdbe8ac86fb5538ccc623a41f88ec96c7168ab9; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< 4bcdd831d9d01e0fb64faea50732b59b2ee88da1; 080dbe7e9b86a0392d8dffc00d9971792afc121f; b4c0d89c92e957ecccce12e66b63875d0cc7af7e; \>= 5.15.19, \< 5.15.198; \>= 5.10.97, \< 5.11; \>= 5.16.5, \< 5.17
- Anyone running Linux 5.17

## Description

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

KVM: x86: Acquire kvm-\>srcu when handling KVM\_SET\_VCPU\_EVENTS

Grab kvm-\>srcu when processing KVM\_SET\_VCPU\_EVENTS, as KVM will forcibly
leave nested VMX/SVM if SMM mode is being toggled, and leaving nested VMX
reads guest memory.

Note, kvm\_vcpu\_ioctl\_x86\_set\_vcpu\_events() can also be called from KVM\_RUN
via sync\_regs(), which already holds SRCU.  I.e. trying to precisely use
kvm\_vcpu\_srcu\_read\_lock() around the problematic SMM code would cause
problems.  Acquiring SRCU isn't all that expensive, so for simplicity,
grab it unconditionally for KVM\_SET\_VCPU\_EVENTS.

 =============================
 WARNING: suspicious RCU usage
 6.10.0-rc7-332d2c1d713e-next-vm \#552 Not tainted
 -----------------------------
 include/linux/kvm\_host.h:1027 suspicious rcu\_dereference\_check() usage!

 other info that might help us debug this:

 rcu\_scheduler\_active = 2, debug\_locks = 1
 1 lock held by repro/1071:
  \#0: ffff88811e424430 (&vcpu-\>mutex){+.+.}-{3:3}, at: kvm\_vcpu\_ioctl+0x7d/0x970 \[kvm\]

 stack backtrace:
 CPU: 15 PID: 1071 Comm: repro Not tainted 6.10.0-rc7-332d2c1d713e-next-vm \#552
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x7f/0x90
  lockdep\_rcu\_suspicious+0x13f/0x1a0
  kvm\_vcpu\_gfn\_to\_memslot+0x168/0x190 \[kvm\]
  kvm\_vcpu\_read\_guest+0x3e/0x90 \[kvm\]
  nested\_vmx\_load\_msr+0x6b/0x1d0 \[kvm\_intel\]
  load\_vmcs12\_host\_state+0x432/0xb40 \[kvm\_intel\]
  vmx\_leave\_nested+0x30/0x40 \[kvm\_intel\]
  kvm\_vcpu\_ioctl\_x86\_set\_vcpu\_events+0x15d/0x2b0 \[kvm\]
  kvm\_arch\_vcpu\_ioctl+0x1107/0x1750 \[kvm\]
  ? mark\_held\_locks+0x49/0x70
  ? kvm\_vcpu\_ioctl+0x7d/0x970 \[kvm\]
  ? kvm\_vcpu\_ioctl+0x497/0x970 \[kvm\]
  kvm\_vcpu\_ioctl+0x497/0x970 \[kvm\]
  ? lock\_acquire+0xba/0x2d0
  ? find\_held\_lock+0x2b/0x80
  ? do\_user\_addr\_fault+0x40c/0x6f0
  ? lock\_release+0xb7/0x270
  \_\_x64\_sys\_ioctl+0x82/0xb0
  do\_syscall\_64+0x6c/0x170
  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
 RIP: 0033:0x7ff11eb1b539
  \</TASK\>

## Affected and fixed versions

- Linux: \>= e302786233e6bc512986d007c96458ccf5ca21c7, \< 5f35099fa3d59caf10bda88b033538e90086684e; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< fa297c33faefe51e10244e8a378837fca4963228; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< 939375737b5a0b1bf9b1e75129054e11bc9ca65e; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< ecdbe8ac86fb5538ccc623a41f88ec96c7168ab9; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< 4bcdd831d9d01e0fb64faea50732b59b2ee88da1; 080dbe7e9b86a0392d8dffc00d9971792afc121f; b4c0d89c92e957ecccce12e66b63875d0cc7af7e; \>= 5.15.19, \< 5.15.198; \>= 5.10.97, \< 5.11; \>= 5.16.5, \< 5.17 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 5.17 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-46830.md
Affected: Linux >= e302786233e6bc512986d007c96458ccf5ca21c7, < 5f35099fa3d59caf10bda88b033538e90086684e; >= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, < fa297c33faefe51e10244e8a378837fca4963228; >= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, < 939375737b5a0b1bf9b1e75129054e11bc9ca65e; >= f7e570780efc5cec9b2ed1e…
Fixed in: Linux 5f35099fa3d59caf10bda88b033538e90086684e, Linux 939375737b5a0b1bf9b1e75129054e11bc9ca65e, Linux 4bcdd831d9d01e0fb64faea50732b59b2ee88da1, Linux 5.15.198, Linux 5.11, Linux 5.17

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-2024-46830 being exploited?

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

### How serious is CVE-2024-46830?

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

### Which versions are affected by CVE-2024-46830?

Linux \>= e302786233e6bc512986d007c96458ccf5ca21c7, \< 5f35099fa3d59caf10bda88b033538e90086684e; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< fa297c33faefe51e10244e8a378837fca4963228; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< 939375737b5a0b1bf9b1e75129054e11bc9ca65e; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< ecdbe8ac86fb5538ccc623a41f88ec96c7168ab9; \>= f7e570780efc5cec9b2ed1e0472a7da14e864fdb, \< 4bcdd831d9d01e0fb64faea50732b59b2ee88da1; 080dbe7e9b86a0392d8dffc00d9971792afc121f; b4c0d89c92e957ecccce12e66b63875d0cc7af7e; \>= 5.15.19, \< 5.15.198; \>= 5.10.97, \< 5.11; \>= 5.16.5, \< 5.17; Linux 5.17.

### Is there a fix for CVE-2024-46830?

Yes. Fixed in Linux 5f35099fa3d59caf10bda88b033538e90086684e, Linux 939375737b5a0b1bf9b1e75129054e11bc9ca65e, Linux 4bcdd831d9d01e0fb64faea50732b59b2ee88da1, Linux 5.15.198, Linux 5.11, Linux 5.17. Upgrade Linux to 5.17 or later.

### How do I check if I'm affected by CVE-2024-46830?

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/5f35099fa3d59caf10bda88b033538e90086684e>
- patch: <https://git.kernel.org/stable/c/fa297c33faefe51e10244e8a378837fca4963228>
- patch: <https://git.kernel.org/stable/c/939375737b5a0b1bf9b1e75129054e11bc9ca65e>
- patch: <https://git.kernel.org/stable/c/ecdbe8ac86fb5538ccc623a41f88ec96c7168ab9>
- patch: <https://git.kernel.org/stable/c/4bcdd831d9d01e0fb64faea50732b59b2ee88da1>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## 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-2024-46830>

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