CVE-2024-35804 (GCVE-0-2024-35804)

Vulnerability from cvelistv5 – Published: 2024-05-17 13:23 – Updated: 2026-08-05 11:30
VLAI
Title
KVM: x86: Mark target gfn of emulated atomic instruction as dirty
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
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator (v2.0.3)
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: d97c0667c1e61ded6639117b4b9584a9c12b7e66 , < a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66 (git)
Affected: 1c2361f667f3648855ceae25f1332c18413fdb9f , < 726374dde5d608b15b9756bd52b6fc283fda7a06 (git)
Affected: 1c2361f667f3648855ceae25f1332c18413fdb9f , < 9d1b22e573a3789ed1f32033ee709106993ba551 (git)
Affected: 1c2361f667f3648855ceae25f1332c18413fdb9f , < 225d587a073584946c05c9b7651d637bd45c0c71 (git)
Affected: 1c2361f667f3648855ceae25f1332c18413fdb9f , < 910c57dfa4d113aae6571c2a8b9ae8c430975902 (git)
Affected: b0f294103f4cf733e23d3f0c4e5fd58e42998921 (git)
Affected: e964665cc7ca13a16992b205fce63554b9efc78b (git)
Affected: 5.15.58 , < 5.15.154 (semver)
Affected: 5.17.13 , < 5.18 (semver)
Affected: 5.18.2 , < 5.19 (semver)
Create a notification for this product.
Linux Linux Affected: 5.19
Unaffected: 0 , < 5.19 (semver)
Unaffected: 5.15.154 , ≤ 5.15.* (semver)
Unaffected: 6.1.84 , ≤ 6.1.* (semver)
Unaffected: 6.6.24 , ≤ 6.6.* (semver)
Unaffected: 6.7.12 , ≤ 6.7.* (semver)
Unaffected: 6.8 , ≤ * (original_commit_for_fix)
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": {
    "epss": {
      "cve": "CVE-2024-35804",
      "date": "2026-08-09",
      "epss": "0.00234",
      "percentile": "0.14292"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-35804\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-05-17T14:15:13.550\",\"lastModified\":\"2026-06-17T07:35:25.073\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"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\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: KVM: x86: marcar el gfn de destino de la instrucci\u00f3n at\u00f3mica emulada como sucia Al emular un acceso at\u00f3mico en nombre del invitado, marque el gfn de destino como sucio si se intenta realizar el CMPXCHG por KVM y no falla. Esto corrige un error por el cual KVM corrompe efectivamente la memoria del invitado durante la migraci\u00f3n en vivo al escribir en la memoria del invitado sin informar al espacio de usuario que la p\u00e1gina est\u00e1 sucia. Marcar la p\u00e1gina como sucia se elimin\u00f3 involuntariamente cuando el CMPXCHG emulado de KVM se convirti\u00f3 para realizar un acceso de usuario. Antes de eso, KVM asignaba expl\u00edcitamente la p\u00e1gina invitada a la memoria del kernel y marcaba la p\u00e1gina como sucia durante la fase de desasignaci\u00f3n. Marque la p\u00e1gina como sucia incluso si CMPXCHG falla, ya que los datos antiguos se vuelven a escribir en caso de fallo, es decir, la p\u00e1gina a\u00fan est\u00e1 escrita. Se garantiza que el valor escrito ser\u00e1 el mismo porque la operaci\u00f3n es at\u00f3mica, pero la ABI de KVM es que todas las escrituras se registran de forma sucia independientemente del valor escrito. Y lo que es m\u00e1s importante, eso es lo que hizo KVM antes de la confirmaci\u00f3n del error. Felicitaciones enormes a las personas en la lista Cc (y a muchos otros), que hicieron todo el trabajo de clasificaci\u00f3n y depuraci\u00f3n. confirmaci\u00f3n base: 6769ea8da8a93ed4630f1ce64df6aafcaabfce64\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"arch/x86/kvm/x86.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"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\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"arch/x86/kvm/x86.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.19\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.19\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.154\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.84\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.24\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.7.12\",\"lessThanOrEqual\":\"6.7.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.8\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-05-17T17:16:37.328508Z\",\"id\":\"CVE-2024-35804\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-401\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.15.58\",\"versionEndExcluding\":\"5.15.154\",\"matchCriteriaId\":\"68D983D7-04C4-4500-BF8E-CA2340EB197E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.17.13\",\"versionEndExcluding\":\"5.18\",\"matchCriteriaId\":\"91C8C459-1749-4BA8-B57B-E19335243827\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.18.2\",\"versionEndExcluding\":\"6.1.84\",\"matchCriteriaId\":\"BBACD95B-732F-4957-8DA5-5103D50703F2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.24\",\"matchCriteriaId\":\"8018C1D0-0A5F-48D0-BC72-A2B33FDDA693\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.7.12\",\"matchCriteriaId\":\"6BE9771A-BAFD-4624-95F9-58D536540C53\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"B9F4EA73-0894-400F-A490-3A397AB7A517\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"056BD938-0A27-4569-B391-30578B309EE3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"F02056A5-B362-4370-9FF8-6F0BD384D520\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"62075ACE-B2A0-4B16-829D-B3DA5AE5CC41\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:*\",\"matchCriteriaId\":\"A780F817-2A77-4130-A9B7-5C25606314E3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:*\",\"matchCriteriaId\":\"AEB9199B-AB8F-4877-8964-E2BA95B5F15C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.8:rc7:*:*:*:*:*:*\",\"matchCriteriaId\":\"C9B8A5CE-6D20-4C36-AC01-ACA4B70003A8\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/225d587a073584946c05c9b7651d637bd45c0c71\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/726374dde5d608b15b9756bd52b6fc283fda7a06\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/910c57dfa4d113aae6571c2a8b9ae8c430975902\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/9d1b22e573a3789ed1f32033ee709106993ba551\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/225d587a073584946c05c9b7651d637bd45c0c71\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/726374dde5d608b15b9756bd52b6fc283fda7a06\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/910c57dfa4d113aae6571c2a8b9ae8c430975902\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/9d1b22e573a3789ed1f32033ee709106993ba551\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a9bd6bb6f02bf7132c1ab192ba62bbfa52df7d66\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-08-04T22:48:26+00:00",
      "cve": "CVE-2024-35804",
      "id": "CVE-2024-35804",
      "initial_release_date": "2024-05-17T00:00:00+00:00",
      "product_status:known_affected": "42",
      "product_status:known_not_affected": "156",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: KVM: x86: Mark target gfn of emulated atomic instruction as dirty",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-35804.json",
      "version": "3"
    },
    "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…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…