{"id":"CVE-2022-50873","aliases":["CVE-2022-50873"],"related":[],"kind":"vulnerability","state":"published","title":"vdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove","summary":"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(&vp_vdpa_mgtdev->mgtdev.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...","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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(&vp_vdpa_mgtdev->mgtdev.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...","source":"cvelist"}],"published":"2025-12-30T12:15:42.705Z","modified":"2026-06-17T05:24:19.933Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ffbda8e9df10d1784d5427ec199e7d8308e3763f","fixed":"8fe12680b2c731201519935013ec9219c93ec540","status":"affected"},{"type":"git","introduced":"ffbda8e9df10d1784d5427ec199e7d8308e3763f","fixed":"6ccc891f36d0c20ee220551caabdcd3886ec584b","status":"affected"},{"type":"git","introduced":"ffbda8e9df10d1784d5427ec199e7d8308e3763f","fixed":"ed843d6ed7310a27cf7c8ee0a82a482eed0cb4a6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.0.19","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.5","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8fe12680b2c731201519935013ec9219c93ec540","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6ccc891f36d0c20ee220551caabdcd3886ec584b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed843d6ed7310a27cf7c8ee0a82a482eed0cb4a6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50873","url":"https://www.cve.org/CVERecord?id=CVE-2022-50873","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:46.591Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50873","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50873","licence":"Public domain","modified":"2026-06-17T05:24:19.933Z"}],"updatedAt":"2026-11-25T22:58:21.387Z","epss":{"score":0.00211,"percentile":0.12115,"date":"2026-12-01T12:00:22.000Z"}}