CVE-2024-58083 (GCVE-0-2024-58083)
Vulnerability from cvelistv5
Published
2025-03-06 16:13
Modified
2025-05-04 13:01
Summary
In the Linux kernel, the following vulnerability has been resolved: KVM: Explicitly verify target vCPU is online in kvm_get_vcpu() Explicitly verify the target vCPU is fully online _prior_ to clamping the index in kvm_get_vcpu(). If the index is "bad", the nospec clamping will generate '0', i.e. KVM will return vCPU0 instead of NULL. In practice, the bug is unlikely to cause problems, as it will only come into play if userspace or the guest is buggy or misbehaving, e.g. KVM may send interrupts to vCPU0 instead of dropping them on the floor. However, returning vCPU0 when it shouldn't exist per online_vcpus is problematic now that KVM uses an xarray for the vCPUs array, as KVM needs to insert into the xarray before publishing the vCPU to userspace (see commit c5b077549136 ("KVM: Convert the kvm->vcpus array to a xarray")), i.e. before vCPU creation is guaranteed to succeed. As a result, incorrectly providing access to vCPU0 will trigger a use-after-free if vCPU0 is dereferenced and kvm_vm_ioctl_create_vcpu() bails out of vCPU creation due to an error and frees vCPU0. Commit afb2acb2e3a3 ("KVM: Fix vcpu_array[0] races") papered over that issue, but in doing so introduced an unsolvable teardown conundrum. Preventing accesses to vCPU0 before it's fully online will allow reverting commit afb2acb2e3a3, without re-introducing the vcpu_array[0] UAF race.
Impacted products
Vendor Product Version
Linux Linux Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c
Version: 559e2696d2f47a3575e9550f101a7e59e30b1b38
Version: d39f3cc71382165bb7efb8e06a2bd32f847de4ae
Version: 7cee966029037a183d98cb88251ceb92a233fe63
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-58083",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-03-27T17:00:02.623750Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-03-27T17:08:23.092Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/kvm_host.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5cce2ed69b00e022b5cdf0c49c82986abd2941a8",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "lessThan": "09d50ccf0b2d739db4a485b08afe7520a4402a63",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "lessThan": "7c4899239d0f70f88ac42665b3da51678d122480",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "lessThan": "d817e510662fd1c9797952408d94806f97a5fffd",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "lessThan": "125da53b3c0c9d7f58353aea0076e9efd6498ba7",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "lessThan": "f2f805ada63b536bc192458a7098388286568ad4",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "lessThan": "ca8da90ed1432ff3d000de4f1e2275d4e7d21b96",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "lessThan": "1e7381f3617d14b3c11da80ff5f8a93ab14cfc46",
              "status": "affected",
              "version": "1d487e9bf8ba66a7174c56a0029c54b1eca8f99c",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "559e2696d2f47a3575e9550f101a7e59e30b1b38",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d39f3cc71382165bb7efb8e06a2bd32f847de4ae",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "7cee966029037a183d98cb88251ceb92a233fe63",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/kvm_host.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.1"
            },
            {
              "lessThan": "5.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.291",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.235",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.179",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.129",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.78",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.291",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.235",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.179",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.129",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.78",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.14",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.3",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.14.120",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.19.44",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.0.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: Explicitly verify target vCPU is online in kvm_get_vcpu()\n\nExplicitly verify the target vCPU is fully online _prior_ to clamping the\nindex in kvm_get_vcpu().  If the index is \"bad\", the nospec clamping will\ngenerate \u00270\u0027, i.e. KVM will return vCPU0 instead of NULL.\n\nIn practice, the bug is unlikely to cause problems, as it will only come\ninto play if userspace or the guest is buggy or misbehaving, e.g. KVM may\nsend interrupts to vCPU0 instead of dropping them on the floor.\n\nHowever, returning vCPU0 when it shouldn\u0027t exist per online_vcpus is\nproblematic now that KVM uses an xarray for the vCPUs array, as KVM needs\nto insert into the xarray before publishing the vCPU to userspace (see\ncommit c5b077549136 (\"KVM: Convert the kvm-\u003evcpus array to a xarray\")),\ni.e. before vCPU creation is guaranteed to succeed.\n\nAs a result, incorrectly providing access to vCPU0 will trigger a\nuse-after-free if vCPU0 is dereferenced and kvm_vm_ioctl_create_vcpu()\nbails out of vCPU creation due to an error and frees vCPU0.  Commit\nafb2acb2e3a3 (\"KVM: Fix vcpu_array[0] races\") papered over that issue, but\nin doing so introduced an unsolvable teardown conundrum.  Preventing\naccesses to vCPU0 before it\u0027s fully online will allow reverting commit\nafb2acb2e3a3, without re-introducing the vcpu_array[0] UAF race."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T13:01:53.162Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5cce2ed69b00e022b5cdf0c49c82986abd2941a8"
        },
        {
          "url": "https://git.kernel.org/stable/c/09d50ccf0b2d739db4a485b08afe7520a4402a63"
        },
        {
          "url": "https://git.kernel.org/stable/c/7c4899239d0f70f88ac42665b3da51678d122480"
        },
        {
          "url": "https://git.kernel.org/stable/c/d817e510662fd1c9797952408d94806f97a5fffd"
        },
        {
          "url": "https://git.kernel.org/stable/c/125da53b3c0c9d7f58353aea0076e9efd6498ba7"
        },
        {
          "url": "https://git.kernel.org/stable/c/f2f805ada63b536bc192458a7098388286568ad4"
        },
        {
          "url": "https://git.kernel.org/stable/c/ca8da90ed1432ff3d000de4f1e2275d4e7d21b96"
        },
        {
          "url": "https://git.kernel.org/stable/c/1e7381f3617d14b3c11da80ff5f8a93ab14cfc46"
        }
      ],
      "title": "KVM: Explicitly verify target vCPU is online in kvm_get_vcpu()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-58083",
    "datePublished": "2025-03-06T16:13:45.631Z",
    "dateReserved": "2025-03-06T15:52:09.183Z",
    "dateUpdated": "2025-05-04T13:01:53.162Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-58083\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-03-06T17:15:21.773\",\"lastModified\":\"2025-04-01T18:30:59.790\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nKVM: Explicitly verify target vCPU is online in kvm_get_vcpu()\\n\\nExplicitly verify the target vCPU is fully online _prior_ to clamping the\\nindex in kvm_get_vcpu().  If the index is \\\"bad\\\", the nospec clamping will\\ngenerate \u00270\u0027, i.e. KVM will return vCPU0 instead of NULL.\\n\\nIn practice, the bug is unlikely to cause problems, as it will only come\\ninto play if userspace or the guest is buggy or misbehaving, e.g. KVM may\\nsend interrupts to vCPU0 instead of dropping them on the floor.\\n\\nHowever, returning vCPU0 when it shouldn\u0027t exist per online_vcpus is\\nproblematic now that KVM uses an xarray for the vCPUs array, as KVM needs\\nto insert into the xarray before publishing the vCPU to userspace (see\\ncommit c5b077549136 (\\\"KVM: Convert the kvm-\u003evcpus array to a xarray\\\")),\\ni.e. before vCPU creation is guaranteed to succeed.\\n\\nAs a result, incorrectly providing access to vCPU0 will trigger a\\nuse-after-free if vCPU0 is dereferenced and kvm_vm_ioctl_create_vcpu()\\nbails out of vCPU creation due to an error and frees vCPU0.  Commit\\nafb2acb2e3a3 (\\\"KVM: Fix vcpu_array[0] races\\\") papered over that issue, but\\nin doing so introduced an unsolvable teardown conundrum.  Preventing\\naccesses to vCPU0 before it\u0027s fully online will allow reverting commit\\nafb2acb2e3a3, without re-introducing the vcpu_array[0] UAF race.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: KVM: verificar expl\u00edcitamente que la vCPU de destino est\u00e9 en l\u00ednea en kvm_get_vcpu() Verifique expl\u00edcitamente que la vCPU de destino est\u00e9 completamente en l\u00ednea _antes_ de fijar el \u00edndice en kvm_get_vcpu(). Si el \u00edndice es \\\"malo\\\", la fijaci\u00f3n nospec generar\u00e1 \u00270\u0027, es decir, KVM devolver\u00e1 vCPU0 en lugar de NULL. En la pr\u00e1ctica, es poco probable que el error cause problemas, ya que solo entrar\u00e1 en juego si el espacio de usuario o el invitado tienen errores o se comportan mal, por ejemplo, KVM puede enviar interrupciones a vCPU0 en lugar de dejarlas en el suelo. Sin embargo, devolver vCPU0 cuando no deber\u00eda existir seg\u00fan online_vcpus es problem\u00e1tico ahora que KVM usa una matriz x para la matriz vCPUs, ya que KVM necesita insertar en la matriz x antes de publicar la vCPU en el espacio de usuario (consulte el commit c5b077549136 (\\\"KVM: Convertir la matriz kvm-\u0026gt;vcpus en una matriz x\\\")), es decir, antes de que se garantice que la creaci\u00f3n de la vCPU sea exitosa. Como resultado, proporcionar acceso incorrectamente a vCPU0 activar\u00e1 un uso despu\u00e9s de liberaci\u00f3n si se desreferencia a vCPU0 y kvm_vm_ioctl_create_vcpu() abandona la creaci\u00f3n de la vCPU debido a un error y libera vCPU0. El commit afb2acb2e3a3 (\\\"KVM: Reparar las ejecuciones vcpu_array[0]\\\") disimul\u00f3 ese problema, pero al hacerlo introdujo un enigma de desmontaje irresoluble. Evitar accesos a vCPU0 antes de que est\u00e9 completamente en l\u00ednea permitir\u00e1 revertir el commit afb2acb2e3a3, sin volver a introducir la ejecuci\u00f3n UAF vcpu_array[0]. \"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.14.120\",\"versionEndExcluding\":\"4.15\",\"matchCriteriaId\":\"4109C9C5-7A19-4EF4-A583-38A5932C1353\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.19.44\",\"versionEndExcluding\":\"4.20\",\"matchCriteriaId\":\"A475630C-76E9-48B4-9632-05B9FE32975D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.0.17\",\"versionEndExcluding\":\"5.4.291\",\"matchCriteriaId\":\"F6AC9536-80D5-49D5-85E1-6D638B7A423C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.235\",\"matchCriteriaId\":\"545121FA-DE31-4154-9446-C2000FB4104D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.179\",\"matchCriteriaId\":\"C708062C-4E1B-465F-AE6D-C09C46400875\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.1.129\",\"matchCriteriaId\":\"2DA5009C-C9B9-4A1D-9B96-78427E8F232C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.78\",\"matchCriteriaId\":\"0C58261F-EDFB-4A12-8CCD-F12101482030\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.12.14\",\"matchCriteriaId\":\"033BB7EE-C9A2-45EA-BAC9-87BB9D951BCD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.13\",\"versionEndExcluding\":\"6.13.3\",\"matchCriteriaId\":\"0E92CEE3-1FC3-4AFC-A513-DEDBA7414F00\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/09d50ccf0b2d739db4a485b08afe7520a4402a63\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/125da53b3c0c9d7f58353aea0076e9efd6498ba7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/1e7381f3617d14b3c11da80ff5f8a93ab14cfc46\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5cce2ed69b00e022b5cdf0c49c82986abd2941a8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/7c4899239d0f70f88ac42665b3da51678d122480\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ca8da90ed1432ff3d000de4f1e2275d4e7d21b96\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d817e510662fd1c9797952408d94806f97a5fffd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f2f805ada63b536bc192458a7098388286568ad4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-58083\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-03-27T17:00:02.623750Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-416\", \"description\": \"CWE-416 Use After Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-03-27T17:00:04.391Z\"}}], \"cna\": {\"title\": \"KVM: Explicitly verify target vCPU is online in kvm_get_vcpu()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"5cce2ed69b00e022b5cdf0c49c82986abd2941a8\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"09d50ccf0b2d739db4a485b08afe7520a4402a63\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"7c4899239d0f70f88ac42665b3da51678d122480\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"d817e510662fd1c9797952408d94806f97a5fffd\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"125da53b3c0c9d7f58353aea0076e9efd6498ba7\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"f2f805ada63b536bc192458a7098388286568ad4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"ca8da90ed1432ff3d000de4f1e2275d4e7d21b96\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1d487e9bf8ba66a7174c56a0029c54b1eca8f99c\", \"lessThan\": \"1e7381f3617d14b3c11da80ff5f8a93ab14cfc46\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"559e2696d2f47a3575e9550f101a7e59e30b1b38\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"d39f3cc71382165bb7efb8e06a2bd32f847de4ae\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"7cee966029037a183d98cb88251ceb92a233fe63\", \"versionType\": \"git\"}], \"programFiles\": [\"include/linux/kvm_host.h\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.1\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.1\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.291\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.235\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.179\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.129\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.78\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12.14\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.12.*\"}, {\"status\": \"unaffected\", \"version\": \"6.13.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.13.*\"}, {\"status\": \"unaffected\", \"version\": \"6.14\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"include/linux/kvm_host.h\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/5cce2ed69b00e022b5cdf0c49c82986abd2941a8\"}, {\"url\": \"https://git.kernel.org/stable/c/09d50ccf0b2d739db4a485b08afe7520a4402a63\"}, {\"url\": \"https://git.kernel.org/stable/c/7c4899239d0f70f88ac42665b3da51678d122480\"}, {\"url\": \"https://git.kernel.org/stable/c/d817e510662fd1c9797952408d94806f97a5fffd\"}, {\"url\": \"https://git.kernel.org/stable/c/125da53b3c0c9d7f58353aea0076e9efd6498ba7\"}, {\"url\": \"https://git.kernel.org/stable/c/f2f805ada63b536bc192458a7098388286568ad4\"}, {\"url\": \"https://git.kernel.org/stable/c/ca8da90ed1432ff3d000de4f1e2275d4e7d21b96\"}, {\"url\": \"https://git.kernel.org/stable/c/1e7381f3617d14b3c11da80ff5f8a93ab14cfc46\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nKVM: Explicitly verify target vCPU is online in kvm_get_vcpu()\\n\\nExplicitly verify the target vCPU is fully online _prior_ to clamping the\\nindex in kvm_get_vcpu().  If the index is \\\"bad\\\", the nospec clamping will\\ngenerate \u00270\u0027, i.e. KVM will return vCPU0 instead of NULL.\\n\\nIn practice, the bug is unlikely to cause problems, as it will only come\\ninto play if userspace or the guest is buggy or misbehaving, e.g. KVM may\\nsend interrupts to vCPU0 instead of dropping them on the floor.\\n\\nHowever, returning vCPU0 when it shouldn\u0027t exist per online_vcpus is\\nproblematic now that KVM uses an xarray for the vCPUs array, as KVM needs\\nto insert into the xarray before publishing the vCPU to userspace (see\\ncommit c5b077549136 (\\\"KVM: Convert the kvm-\u003evcpus array to a xarray\\\")),\\ni.e. before vCPU creation is guaranteed to succeed.\\n\\nAs a result, incorrectly providing access to vCPU0 will trigger a\\nuse-after-free if vCPU0 is dereferenced and kvm_vm_ioctl_create_vcpu()\\nbails out of vCPU creation due to an error and frees vCPU0.  Commit\\nafb2acb2e3a3 (\\\"KVM: Fix vcpu_array[0] races\\\") papered over that issue, but\\nin doing so introduced an unsolvable teardown conundrum.  Preventing\\naccesses to vCPU0 before it\u0027s fully online will allow reverting commit\\nafb2acb2e3a3, without re-introducing the vcpu_array[0] UAF race.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.291\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.235\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.179\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.129\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.78\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12.14\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.13.3\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.14\", \"versionStartIncluding\": \"5.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"4.14.120\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"4.19.44\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"5.0.17\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T13:01:53.162Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-58083\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T13:01:53.162Z\", \"dateReserved\": \"2025-03-06T15:52:09.183Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-03-06T16:13:45.631Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


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.
  • 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…