CVE-2021-47296 (GCVE-0-2021-47296)
Vulnerability from cvelistv5
Published
2024-05-21 14:35
Modified
2026-08-05 08:47
Summary
In the Linux kernel, the following vulnerability has been resolved: KVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak vcpu_put is not called if the user copy fails. This can result in preempt notifier corruption and crashes, among other issues.
Impacted products
Vendor Product Version
Linux Linux Version: b3cebfe8c1cadf1817939dcc3688a2504a69c662
Version: b3cebfe8c1cadf1817939dcc3688a2504a69c662
Version: b3cebfe8c1cadf1817939dcc3688a2504a69c662
Version: b3cebfe8c1cadf1817939dcc3688a2504a69c662
Version: b3cebfe8c1cadf1817939dcc3688a2504a69c662
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2021-47296",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-28T19:22:38.048038Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:14:24.621Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T05:32:08.371Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/9bafc34dc4ad0cef18727c557f21ed3c3304df50"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/f38527f1890543cdfca8dfd06f75f9887cce6151"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/e14ef1095387f764d95614d3ec9e4d07c82a3533"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/a4a488915feaad38345cc01b80d52e8200ff5209"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/bc4188a2f56e821ea057aca6bf444e138d06c252"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/powerpc/kvm/powerpc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "9bafc34dc4ad0cef18727c557f21ed3c3304df50",
              "status": "affected",
              "version": "b3cebfe8c1cadf1817939dcc3688a2504a69c662",
              "versionType": "git"
            },
            {
              "lessThan": "f38527f1890543cdfca8dfd06f75f9887cce6151",
              "status": "affected",
              "version": "b3cebfe8c1cadf1817939dcc3688a2504a69c662",
              "versionType": "git"
            },
            {
              "lessThan": "e14ef1095387f764d95614d3ec9e4d07c82a3533",
              "status": "affected",
              "version": "b3cebfe8c1cadf1817939dcc3688a2504a69c662",
              "versionType": "git"
            },
            {
              "lessThan": "a4a488915feaad38345cc01b80d52e8200ff5209",
              "status": "affected",
              "version": "b3cebfe8c1cadf1817939dcc3688a2504a69c662",
              "versionType": "git"
            },
            {
              "lessThan": "bc4188a2f56e821ea057aca6bf444e138d06c252",
              "status": "affected",
              "version": "b3cebfe8c1cadf1817939dcc3688a2504a69c662",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/powerpc/kvm/powerpc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.18"
            },
            {
              "lessThan": "4.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.199",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.136",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.54",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.13.*",
              "status": "unaffected",
              "version": "5.13.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.199",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.136",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.54",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.13.6",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.14",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak\n\nvcpu_put is not called if the user copy fails. This can result in preempt\nnotifier corruption and crashes, among other issues."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Triggered via local host ioctls on a KVM vCPU fd (/dev/kvm \u2192 KVM_CREATE_VM \u2192 KVM_CREATE_VCPU \u2192 KVM_ENABLE_CAP/KVM_DIRTY_TLB), not via network packets or unaided guest execution.\nAC:L - The attacker reliably forces the bug by passing an invalid userspace pointer so copy_from_user fails after vcpu_load; no race or attacker-independent condition is required.\nPR:L - The ioctl path has no capable() check; access needs only /dev/kvm permissions (kvm group or equivalent device access), which is unprivileged rather than init-namespace root.\nUI:N - The attacker triggers the leak directly with their own KVM ioctls; no separate victim action is required.\nS:U - This is host userspace (VMM) corrupting host kernel state via the KVM ioctl interface, not a guest-to-host escape across a VM security boundary.\nC:H - Leaked preempt_notifier remains linked after vcpu free (kvm_destroy_vcpus), yielding a use-after-free of the vcpu object whose sprayed contents can disclose kernel memory when sched_in/out runs.\nI:H - UAF of the embedded preempt_notifier (including the ops pointer) and double-register hlist corruption enable heap corruption and control-flow hijack when notifier callbacks fire.\nA:H - Double preempt_notifier_register creates a self-referential hlist that infinite-loops in the scheduler, and the UAF/corruption paths cause kernel oops, hang, or panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:47:08.193Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/9bafc34dc4ad0cef18727c557f21ed3c3304df50"
        },
        {
          "url": "https://git.kernel.org/stable/c/f38527f1890543cdfca8dfd06f75f9887cce6151"
        },
        {
          "url": "https://git.kernel.org/stable/c/e14ef1095387f764d95614d3ec9e4d07c82a3533"
        },
        {
          "url": "https://git.kernel.org/stable/c/a4a488915feaad38345cc01b80d52e8200ff5209"
        },
        {
          "url": "https://git.kernel.org/stable/c/bc4188a2f56e821ea057aca6bf444e138d06c252"
        }
      ],
      "title": "KVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2021-47296",
    "datePublished": "2024-05-21T14:35:19.341Z",
    "dateReserved": "2024-05-21T13:27:52.130Z",
    "dateUpdated": "2026-08-05T08:47:08.193Z",
    "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/9bafc34dc4ad0cef18727c557f21ed3c3304df50\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/f38527f1890543cdfca8dfd06f75f9887cce6151\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/e14ef1095387f764d95614d3ec9e4d07c82a3533\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/a4a488915feaad38345cc01b80d52e8200ff5209\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/bc4188a2f56e821ea057aca6bf444e138d06c252\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:32:08.371Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47296\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-28T19:22:38.048038Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-28T19:22:47.399Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"KVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - Triggered via local host ioctls on a KVM vCPU fd (/dev/kvm \\u2192 KVM_CREATE_VM \\u2192 KVM_CREATE_VCPU \\u2192 KVM_ENABLE_CAP/KVM_DIRTY_TLB), not via network packets or unaided guest execution.\\nAC:L - The attacker reliably forces the bug by passing an invalid userspace pointer so copy_from_user fails after vcpu_load; no race or attacker-independent condition is required.\\nPR:L - The ioctl path has no capable() check; access needs only /dev/kvm permissions (kvm group or equivalent device access), which is unprivileged rather than init-namespace root.\\nUI:N - The attacker triggers the leak directly with their own KVM ioctls; no separate victim action is required.\\nS:U - This is host userspace (VMM) corrupting host kernel state via the KVM ioctl interface, not a guest-to-host escape across a VM security boundary.\\nC:H - Leaked preempt_notifier remains linked after vcpu free (kvm_destroy_vcpus), yielding a use-after-free of the vcpu object whose sprayed contents can disclose kernel memory when sched_in/out runs.\\nI:H - UAF of the embedded preempt_notifier (including the ops pointer) and double-register hlist corruption enable heap corruption and control-flow hijack when notifier callbacks fire.\\nA:H - Double preempt_notifier_register creates a self-referential hlist that infinite-loops in the scheduler, and the UAF/corruption paths cause kernel oops, hang, or panic.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"b3cebfe8c1cadf1817939dcc3688a2504a69c662\", \"lessThan\": \"9bafc34dc4ad0cef18727c557f21ed3c3304df50\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b3cebfe8c1cadf1817939dcc3688a2504a69c662\", \"lessThan\": \"f38527f1890543cdfca8dfd06f75f9887cce6151\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b3cebfe8c1cadf1817939dcc3688a2504a69c662\", \"lessThan\": \"e14ef1095387f764d95614d3ec9e4d07c82a3533\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b3cebfe8c1cadf1817939dcc3688a2504a69c662\", \"lessThan\": \"a4a488915feaad38345cc01b80d52e8200ff5209\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b3cebfe8c1cadf1817939dcc3688a2504a69c662\", \"lessThan\": \"bc4188a2f56e821ea057aca6bf444e138d06c252\", \"versionType\": \"git\"}], \"programFiles\": [\"arch/powerpc/kvm/powerpc.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.18\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.18\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.19.199\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.136\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.54\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.13.6\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.13.*\"}, {\"status\": \"unaffected\", \"version\": \"5.14\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"arch/powerpc/kvm/powerpc.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/9bafc34dc4ad0cef18727c557f21ed3c3304df50\"}, {\"url\": \"https://git.kernel.org/stable/c/f38527f1890543cdfca8dfd06f75f9887cce6151\"}, {\"url\": \"https://git.kernel.org/stable/c/e14ef1095387f764d95614d3ec9e4d07c82a3533\"}, {\"url\": \"https://git.kernel.org/stable/c/a4a488915feaad38345cc01b80d52e8200ff5209\"}, {\"url\": \"https://git.kernel.org/stable/c/bc4188a2f56e821ea057aca6bf444e138d06c252\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nKVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak\\n\\nvcpu_put is not called if the user copy fails. This can result in preempt\\nnotifier corruption and crashes, among other issues.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.19.199\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.136\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.54\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.13.6\", \"versionStartIncluding\": \"4.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.14\", \"versionStartIncluding\": \"4.18\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T08:47:08.193Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2021-47296\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T08:47:08.193Z\", \"dateReserved\": \"2024-05-21T13:27:52.130Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-21T14:35:19.341Z\", \"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…