CVE-2024-35804 (GCVE-0-2024-35804)
Vulnerability from cvelistv5
Published
2024-05-17 13:23
Modified
2026-08-05 11:30
Summary
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
Impacted products
Vendor Product Version
Linux Linux Version: d97c0667c1e61ded6639117b4b9584a9c12b7e66
Version: 1c2361f667f3648855ceae25f1332c18413fdb9f
Version: 1c2361f667f3648855ceae25f1332c18413fdb9f
Version: 1c2361f667f3648855ceae25f1332c18413fdb9f
Version: 1c2361f667f3648855ceae25f1332c18413fdb9f
Version: b0f294103f4cf733e23d3f0c4e5fd58e42998921
Version: e964665cc7ca13a16992b205fce63554b9efc78b
Version: 5.15.58   
Version: 5.17.13   
Version: 5.18.2   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-35804",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-17T17:16:37.328508Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:33:56.600Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T03:21:47.342Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/726374dde5d608b15b9756bd52b6fc283fda7a06"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/9d1b22e573a3789ed1f32033ee709106993ba551"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/225d587a073584946c05c9b7651d637bd45c0c71"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/910c57dfa4d113aae6571c2a8b9ae8c430975902"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/kvm/x86.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66",
              "status": "affected",
              "version": "d97c0667c1e61ded6639117b4b9584a9c12b7e66",
              "versionType": "git"
            },
            {
              "lessThan": "726374dde5d608b15b9756bd52b6fc283fda7a06",
              "status": "affected",
              "version": "1c2361f667f3648855ceae25f1332c18413fdb9f",
              "versionType": "git"
            },
            {
              "lessThan": "9d1b22e573a3789ed1f32033ee709106993ba551",
              "status": "affected",
              "version": "1c2361f667f3648855ceae25f1332c18413fdb9f",
              "versionType": "git"
            },
            {
              "lessThan": "225d587a073584946c05c9b7651d637bd45c0c71",
              "status": "affected",
              "version": "1c2361f667f3648855ceae25f1332c18413fdb9f",
              "versionType": "git"
            },
            {
              "lessThan": "910c57dfa4d113aae6571c2a8b9ae8c430975902",
              "status": "affected",
              "version": "1c2361f667f3648855ceae25f1332c18413fdb9f",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "b0f294103f4cf733e23d3f0c4e5fd58e42998921",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e964665cc7ca13a16992b205fce63554b9efc78b",
              "versionType": "git"
            },
            {
              "lessThan": "5.15.154",
              "status": "affected",
              "version": "5.15.58",
              "versionType": "semver"
            },
            {
              "lessThan": "5.18",
              "status": "affected",
              "version": "5.17.13",
              "versionType": "semver"
            },
            {
              "lessThan": "5.19",
              "status": "affected",
              "version": "5.18.2",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/x86/kvm/x86.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.19"
            },
            {
              "lessThan": "5.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.154",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.84",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.24",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.8",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.154",
                  "versionStartIncluding": "5.15.58",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.84",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.24",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.7.12",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.17.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.18.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: Mark target gfn of emulated atomic instruction as dirty\n\nWhen emulating an atomic access on behalf of the guest, mark the target\ngfn dirty if the CMPXCHG by KVM is attempted and doesn\u0027t fault.  This\nfixes a bug where KVM effectively corrupts guest memory during live\nmigration by writing to guest memory without informing userspace that the\npage is dirty.\n\nMarking the page dirty got unintentionally dropped when KVM\u0027s emulated\nCMPXCHG was converted to do a user access.  Before that, KVM explicitly\nmapped the guest page into kernel memory, and marked the page dirty during\nthe unmap phase.\n\nMark the page dirty even if the CMPXCHG fails, as the old data is written\nback on failure, i.e. the page is still written.  The value written is\nguaranteed to be the same because the operation is atomic, but KVM\u0027s ABI\nis that all writes are dirty logged regardless of the value written.  And\nmore importantly, that\u0027s what KVM did before the buggy commit.\n\nHuge kudos to the folks on the Cc list (and many others), who did all the\nactual work of triaging and debugging.\n\nbase-commit: 6769ea8da8a93ed4630f1ce64df6aafcaabfce64"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Reaching `emulator_cmpxchg_emulated()` requires executing instructions inside a guest on the affected host \u2014 a locked RMW against a write-tracked/emulated gfn \u2014 which is local code execution on the vulnerable component, not a network-delivered input. No remote protocol handler in the host reaches this path.\nAC:L - The missing dirty-marking is unconditional and deterministic \u2014 no race, no timing window, and no dependence on memory layout the attacker cannot influence; every emulated atomic write during dirty logging is silently dropped. Live migration and dirty-ring/framebuffer dirty tracking are routine, automated, recurring operations in cloud and virtualization deployments, so an attacker running a shadow-paged or nested workload only has to keep it running for the corruption to occur, and Google observed the defect in ordinary production migrations.\nPR:L - From the host KVM\u0027s perspective the attacker only needs the ability to run code in a guest, which is a low-privileged position on the vulnerable component. Inside the guest even an unprivileged CPL=3 process suffices, because the guest kernel performs the locked page-table RMWs (`ptep_test_and_clear_young`, `ptep_get_and_clear`, COW/mprotect/fork updates) on its behalf, and those PTE pages are exactly the write-tracked gfns routed to the emulator.\nUI:N - No victim action is needed \u2014 dirty logging is enabled by the orchestrator or device model automatically (host maintenance/rebalancing migrations, dirty-ring checkpointing, framebuffer tracking), with no human in the loop. Once logging is active, the guest\u0027s own execution triggers the lost write with no cooperation from anyone else.\nS:C - The defect lives in the host kernel\u0027s KVM module, but the damage is realized entirely in a different security authority \u2014 the guest VM\u0027s memory, governed by the guest OS \u2014 and lets a low-privileged guest context cause corruption of guest-kernel and other-process memory it could never write directly. The write also escapes the host\u0027s dirty-tracking ABI, so state changes cross out of the host hypervisor\u0027s accounting boundary into the guest.\nC:H - The pages funneled through this path are predominantly write-tracked guest page tables, so a dropped update leaves the migrated guest with a stale PTE that still maps a physical page since reassigned to another process or the kernel, yielding an arbitrary-read window across intra-guest boundaries. Any page whose emulated atomic write is lost also retains its previous contents into a new owner\u0027s security context, exposing data the new owner should never see.\nI:H - Guest memory is silently corrupted: writes the guest architecturally committed are reverted on the migrated VM, which for page-table pages is a rollback of mapping and permission state (write-protect and accessed/dirty bits) into an arbitrary-write primitive over other processes\u0027 or the kernel\u0027s memory. KVM\u0027s own commit message describes this as KVM \"effectively corrupting guest memory,\" and the same rollback can revert security-relevant guest state such as reference counts, lock words, and credential structures.\nA:H - A migrated guest resuming with inconsistent memory \u2014 particularly stale page tables or reverted kernel data structures \u2014 panics, hangs, or corrupts its filesystem, taking down the entire VM and every workload on it. The corruption is silent and unrecoverable after the fact, since the source VM is discarded once migration completes."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:30:02.623Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66"
        },
        {
          "url": "https://git.kernel.org/stable/c/726374dde5d608b15b9756bd52b6fc283fda7a06"
        },
        {
          "url": "https://git.kernel.org/stable/c/9d1b22e573a3789ed1f32033ee709106993ba551"
        },
        {
          "url": "https://git.kernel.org/stable/c/225d587a073584946c05c9b7651d637bd45c0c71"
        },
        {
          "url": "https://git.kernel.org/stable/c/910c57dfa4d113aae6571c2a8b9ae8c430975902"
        }
      ],
      "title": "KVM: x86: Mark target gfn of emulated atomic instruction as dirty",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-35804",
    "datePublished": "2024-05-17T13:23:12.895Z",
    "dateReserved": "2024-05-17T12:19:12.341Z",
    "dateUpdated": "2026-08-05T11:30:02.623Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/726374dde5d608b15b9756bd52b6fc283fda7a06\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/9d1b22e573a3789ed1f32033ee709106993ba551\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/225d587a073584946c05c9b7651d637bd45c0c71\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/910c57dfa4d113aae6571c2a8b9ae8c430975902\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T03:21:47.342Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-35804\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-17T17:16:37.328508Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:01:24.653Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"KVM: x86: Mark target gfn of emulated atomic instruction as dirty\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 8.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - Reaching `emulator_cmpxchg_emulated()` requires executing instructions inside a guest on the affected host \\u2014 a locked RMW against a write-tracked/emulated gfn \\u2014 which is local code execution on the vulnerable component, not a network-delivered input. No remote protocol handler in the host reaches this path.\\nAC:L - The missing dirty-marking is unconditional and deterministic \\u2014 no race, no timing window, and no dependence on memory layout the attacker cannot influence; every emulated atomic write during dirty logging is silently dropped. Live migration and dirty-ring/framebuffer dirty tracking are routine, automated, recurring operations in cloud and virtualization deployments, so an attacker running a shadow-paged or nested workload only has to keep it running for the corruption to occur, and Google observed the defect in ordinary production migrations.\\nPR:L - From the host KVM\u0027s perspective the attacker only needs the ability to run code in a guest, which is a low-privileged position on the vulnerable component. Inside the guest even an unprivileged CPL=3 process suffices, because the guest kernel performs the locked page-table RMWs (`ptep_test_and_clear_young`, `ptep_get_and_clear`, COW/mprotect/fork updates) on its behalf, and those PTE pages are exactly the write-tracked gfns routed to the emulator.\\nUI:N - No victim action is needed \\u2014 dirty logging is enabled by the orchestrator or device model automatically (host maintenance/rebalancing migrations, dirty-ring checkpointing, framebuffer tracking), with no human in the loop. Once logging is active, the guest\u0027s own execution triggers the lost write with no cooperation from anyone else.\\nS:C - The defect lives in the host kernel\u0027s KVM module, but the damage is realized entirely in a different security authority \\u2014 the guest VM\u0027s memory, governed by the guest OS \\u2014 and lets a low-privileged guest context cause corruption of guest-kernel and other-process memory it could never write directly. The write also escapes the host\u0027s dirty-tracking ABI, so state changes cross out of the host hypervisor\u0027s accounting boundary into the guest.\\nC:H - The pages funneled through this path are predominantly write-tracked guest page tables, so a dropped update leaves the migrated guest with a stale PTE that still maps a physical page since reassigned to another process or the kernel, yielding an arbitrary-read window across intra-guest boundaries. Any page whose emulated atomic write is lost also retains its previous contents into a new owner\u0027s security context, exposing data the new owner should never see.\\nI:H - Guest memory is silently corrupted: writes the guest architecturally committed are reverted on the migrated VM, which for page-table pages is a rollback of mapping and permission state (write-protect and accessed/dirty bits) into an arbitrary-write primitive over other processes\u0027 or the kernel\u0027s memory. KVM\u0027s own commit message describes this as KVM \\\"effectively corrupting guest memory,\\\" and the same rollback can revert security-relevant guest state such as reference counts, lock words, and credential structures.\\nA:H - A migrated guest resuming with inconsistent memory \\u2014 particularly stale page tables or reverted kernel data structures \\u2014 panics, hangs, or corrupts its filesystem, taking down the entire VM and every workload on it. The corruption is silent and unrecoverable after the fact, since the source VM is discarded once migration completes.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"d97c0667c1e61ded6639117b4b9584a9c12b7e66\", \"lessThan\": \"a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1c2361f667f3648855ceae25f1332c18413fdb9f\", \"lessThan\": \"726374dde5d608b15b9756bd52b6fc283fda7a06\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1c2361f667f3648855ceae25f1332c18413fdb9f\", \"lessThan\": \"9d1b22e573a3789ed1f32033ee709106993ba551\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1c2361f667f3648855ceae25f1332c18413fdb9f\", \"lessThan\": \"225d587a073584946c05c9b7651d637bd45c0c71\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1c2361f667f3648855ceae25f1332c18413fdb9f\", \"lessThan\": \"910c57dfa4d113aae6571c2a8b9ae8c430975902\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b0f294103f4cf733e23d3f0c4e5fd58e42998921\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"e964665cc7ca13a16992b205fce63554b9efc78b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5.15.58\", \"lessThan\": \"5.15.154\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.17.13\", \"lessThan\": \"5.18\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.18.2\", \"lessThan\": \"5.19\", \"versionType\": \"semver\"}], \"programFiles\": [\"arch/x86/kvm/x86.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.19\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.19\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.15.154\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.84\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.24\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.7.12\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.7.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"arch/x86/kvm/x86.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66\"}, {\"url\": \"https://git.kernel.org/stable/c/726374dde5d608b15b9756bd52b6fc283fda7a06\"}, {\"url\": \"https://git.kernel.org/stable/c/9d1b22e573a3789ed1f32033ee709106993ba551\"}, {\"url\": \"https://git.kernel.org/stable/c/225d587a073584946c05c9b7651d637bd45c0c71\"}, {\"url\": \"https://git.kernel.org/stable/c/910c57dfa4d113aae6571c2a8b9ae8c430975902\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nKVM: x86: Mark target gfn of emulated atomic instruction as dirty\\n\\nWhen emulating an atomic access on behalf of the guest, mark the target\\ngfn dirty if the CMPXCHG by KVM is attempted and doesn\u0027t fault.  This\\nfixes a bug where KVM effectively corrupts guest memory during live\\nmigration by writing to guest memory without informing userspace that the\\npage is dirty.\\n\\nMarking the page dirty got unintentionally dropped when KVM\u0027s emulated\\nCMPXCHG was converted to do a user access.  Before that, KVM explicitly\\nmapped the guest page into kernel memory, and marked the page dirty during\\nthe unmap phase.\\n\\nMark the page dirty even if the CMPXCHG fails, as the old data is written\\nback on failure, i.e. the page is still written.  The value written is\\nguaranteed to be the same because the operation is atomic, but KVM\u0027s ABI\\nis that all writes are dirty logged regardless of the value written.  And\\nmore importantly, that\u0027s what KVM did before the buggy commit.\\n\\nHuge kudos to the folks on the Cc list (and many others), who did all the\\nactual work of triaging and debugging.\\n\\nbase-commit: 6769ea8da8a93ed4630f1ce64df6aafcaabfce64\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.154\", \"versionStartIncluding\": \"5.15.58\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.84\", \"versionStartIncluding\": \"5.19\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.24\", \"versionStartIncluding\": \"5.19\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.7.12\", \"versionStartIncluding\": \"5.19\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8\", \"versionStartIncluding\": \"5.19\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"5.17.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"5.18.2\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T11:30:02.623Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-35804\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T11:30:02.623Z\", \"dateReserved\": \"2024-05-17T12:19:12.341Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-17T13:23:12.895Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…