CVE-2022-50873 (GCVE-0-2022-50873)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:15 – Updated: 2025-12-30 12:15
VLAI?
Title
vdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove
Summary
In the Linux kernel, the following vulnerability has been resolved: vdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove In vp_vdpa_remove(), the code kfree(&vp_vdpa_mgtdev->mgtdev.id_table) uses a reference of pointer as the argument of kfree, which is the wrong pointer and then may hit crash like this: Unable to handle kernel paging request at virtual address 00ffff003363e30c Internal error: Oops: 96000004 [#1] SMP Call trace: rb_next+0x20/0x5c ext4_readdir+0x494/0x5c4 [ext4] iterate_dir+0x168/0x1b4 __se_sys_getdents64+0x68/0x170 __arm64_sys_getdents64+0x24/0x30 el0_svc_common.constprop.0+0x7c/0x1bc do_el0_svc+0x2c/0x94 el0_svc+0x20/0x30 el0_sync_handler+0xb0/0xb4 el0_sync+0x160/0x180 Code: 54000220 f9400441 b4000161 aa0103e0 (f9400821) SMP: stopping secondary CPUs Starting crashdump kernel...
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: ffbda8e9df10d1784d5427ec199e7d8308e3763f , < 8fe12680b2c731201519935013ec9219c93ec540 (git)
Affected: ffbda8e9df10d1784d5427ec199e7d8308e3763f , < 6ccc891f36d0c20ee220551caabdcd3886ec584b (git)
Affected: ffbda8e9df10d1784d5427ec199e7d8308e3763f , < ed843d6ed7310a27cf7c8ee0a82a482eed0cb4a6 (git)
Create a notification for this product.
    Linux Linux Affected: 5.19
Unaffected: 0 , < 5.19 (semver)
Unaffected: 6.0.19 , ≤ 6.0.* (semver)
Unaffected: 6.1.5 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/vdpa/virtio_pci/vp_vdpa.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8fe12680b2c731201519935013ec9219c93ec540",
              "status": "affected",
              "version": "ffbda8e9df10d1784d5427ec199e7d8308e3763f",
              "versionType": "git"
            },
            {
              "lessThan": "6ccc891f36d0c20ee220551caabdcd3886ec584b",
              "status": "affected",
              "version": "ffbda8e9df10d1784d5427ec199e7d8308e3763f",
              "versionType": "git"
            },
            {
              "lessThan": "ed843d6ed7310a27cf7c8ee0a82a482eed0cb4a6",
              "status": "affected",
              "version": "ffbda8e9df10d1784d5427ec199e7d8308e3763f",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/vdpa/virtio_pci/vp_vdpa.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": "6.0.*",
              "status": "unaffected",
              "version": "6.0.19",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.19",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.5",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove\n\nIn vp_vdpa_remove(), the code kfree(\u0026vp_vdpa_mgtdev-\u003emgtdev.id_table) uses\na reference of pointer as the argument of kfree, which is the wrong pointer\nand then may hit crash like this:\n\nUnable to handle kernel paging request at virtual address 00ffff003363e30c\nInternal error: Oops: 96000004 [#1] SMP\nCall trace:\n rb_next+0x20/0x5c\n ext4_readdir+0x494/0x5c4 [ext4]\n iterate_dir+0x168/0x1b4\n __se_sys_getdents64+0x68/0x170\n __arm64_sys_getdents64+0x24/0x30\n el0_svc_common.constprop.0+0x7c/0x1bc\n do_el0_svc+0x2c/0x94\n el0_svc+0x20/0x30\n el0_sync_handler+0xb0/0xb4\n el0_sync+0x160/0x180\nCode: 54000220 f9400441 b4000161 aa0103e0 (f9400821)\nSMP: stopping secondary CPUs\nStarting crashdump kernel..."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-30T12:15:42.705Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8fe12680b2c731201519935013ec9219c93ec540"
        },
        {
          "url": "https://git.kernel.org/stable/c/6ccc891f36d0c20ee220551caabdcd3886ec584b"
        },
        {
          "url": "https://git.kernel.org/stable/c/ed843d6ed7310a27cf7c8ee0a82a482eed0cb4a6"
        }
      ],
      "title": "vdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50873",
    "datePublished": "2025-12-30T12:15:42.705Z",
    "dateReserved": "2025-12-30T12:06:07.136Z",
    "dateUpdated": "2025-12-30T12:15:42.705Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50873\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:16:02.263\",\"lastModified\":\"2025-12-30T13:16:02.263\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nvdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove\\n\\nIn vp_vdpa_remove(), the code kfree(\u0026vp_vdpa_mgtdev-\u003emgtdev.id_table) uses\\na reference of pointer as the argument of kfree, which is the wrong pointer\\nand then may hit crash like this:\\n\\nUnable to handle kernel paging request at virtual address 00ffff003363e30c\\nInternal error: Oops: 96000004 [#1] SMP\\nCall trace:\\n rb_next+0x20/0x5c\\n ext4_readdir+0x494/0x5c4 [ext4]\\n iterate_dir+0x168/0x1b4\\n __se_sys_getdents64+0x68/0x170\\n __arm64_sys_getdents64+0x24/0x30\\n el0_svc_common.constprop.0+0x7c/0x1bc\\n do_el0_svc+0x2c/0x94\\n el0_svc+0x20/0x30\\n el0_sync_handler+0xb0/0xb4\\n el0_sync+0x160/0x180\\nCode: 54000220 f9400441 b4000161 aa0103e0 (f9400821)\\nSMP: stopping secondary CPUs\\nStarting crashdump kernel...\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/6ccc891f36d0c20ee220551caabdcd3886ec584b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8fe12680b2c731201519935013ec9219c93ec540\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ed843d6ed7310a27cf7c8ee0a82a482eed0cb4a6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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