CVE-2024-35804
Last modified
CVE-2024-35804 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Mark target gfn of emulated atomic instruction as dirty When emulating an atomic access on behalf of the guest, mark the target gfn dirty if the CMPXCHG by KVM is attempted and doesn't fault. This fixes a bug where KVM effectively corrupts guest memory during live migration by writing to guest memory without informing userspace that the page is dirty. Marking the page dirty got unintentionally dropped when KVM's emulated CMPXCHG was converted to do a user access. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Mark target gfn of emulated atomic instruction as dirty When emulating an atomic access on behalf of the guest, mark the target gfn dirty if the CMPXCHG by KVM is attempted and doesn't fault. This fixes a bug where KVM effectively corrupts guest memory during live migration by writing to guest memory without informing userspace that the page is dirty. Marking the page dirty got unintentionally dropped when KVM's emulated CMPXCHG was converted to do a user access. Before that, KVM explicitly mapped the guest page into kernel memory, and marked the page dirty during the unmap phase. Mark the page dirty even if the CMPXCHG fails, as the old data is written back on failure, i.e. the page is still written. The value written is guaranteed to be the same because the operation is atomic, but KVM's ABI is that all writes are dirty logged regardless of the value written. And more importantly, that's what KVM did before the buggy commit. Huge kudos to the folks on the Cc list (and many others), who did all the actual work of triaging and debugging. base-commit: 6769ea8da8a93ed4630f1ce64df6aafcaabfce64
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.15.58, < 5.15.154 | — |
| Linux | Linux Kernel | >= 5.17.13, < 5.18 | — |
| Linux | Linux Kernel | >= 5.18.2, < 6.1.84 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.24 | — |
| Linux | Linux Kernel | >= 6.7, < 6.7.12 | — |
| Linux | Linux Kernel | 6.8 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-35804?
How severe is CVE-2024-35804?
How do I fix CVE-2024-35804?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-35799In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-3580The Popup4Phone WordPress plugin through 1.3.2 does not sani…6.1
- CVE-2024-35800In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35801In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35802Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-35803In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35805In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35806In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35807In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35808In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35809In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-3581The MaxGalleria plugin for WordPress is vulnerable to unauth…4.3
Are you affected by CVE-2024-35804?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
