Skip to main content
Network Thinking Solutions Logo

CVE-2024-35804

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.

All CVEs
CVE-2024-35804Published 5/17/2024

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.

Vendor advisory
CVSS8.8High

Overview

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

Published
5/17/2024
Last modified
8/4/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.15.58, < 5.15.154

Verify advisory

Source
linux kernel
linux
≥ 5.17.13, < 5.18

Verify advisory

Source
linux kernel
linux
≥ 5.18.2, < 6.1.84

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.24

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.7.12

Verify advisory

Source
linux kernel
linux
6.8

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ d97c0667c1e61ded6639117b4b9584a9c12b7e66, < a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66

Verify advisory

Source
Linux
Linux
≥ 1c2361f667f3648855ceae25f1332c18413fdb9f, < 726374dde5d608b15b9756bd52b6fc283fda7a06

Verify advisory

Source
Linux
Linux
≥ 1c2361f667f3648855ceae25f1332c18413fdb9f, < 9d1b22e573a3789ed1f32033ee709106993ba551

Verify advisory

Source
Linux
Linux
≥ 1c2361f667f3648855ceae25f1332c18413fdb9f, < 225d587a073584946c05c9b7651d637bd45c0c71

Verify advisory

Source
Linux
Linux
≥ 1c2361f667f3648855ceae25f1332c18413fdb9f, < 910c57dfa4d113aae6571c2a8b9ae8c430975902

Verify advisory

Source
Linux
Linux
b0f294103f4cf733e23d3f0c4e5fd58e42998921

Verify advisory

Source
Linux
Linux
e964665cc7ca13a16992b205fce63554b9efc78b

Verify advisory

Source
Linux
Linux
≥ 5.15.58, < 5.15.154

Verify advisory

Source
Linux
Linux
≥ 5.17.13, < 5.18

Verify advisory

Source
Linux
Linux
≥ 5.18.2, < 5.19

Verify advisory

Source
Linux
Linux
5.19

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 8.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.