CVE-2022-48861

vdpa: fix use-after-free on vp_vdpa_remove

State
Published
Severity
Not scored
Published
Jul 16, 2024
Updated
May 11, 2026
Reserved
Jul 16, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

vdpa: fix use-after-free on vp_vdpa_remove

When vp_vdpa driver is unbind, vp_vdpa is freed in vdpa_unregister_device and then vp_vdpa->mdev.pci_dev is dereferenced in vp_modern_remove, triggering use-after-free.

Call Trace of unbinding driver free vp_vdpa : do_syscall_64 vfs_write kernfs_fop_write_iter device_release_driver_internal pci_device_remove vp_vdpa_remove vdpa_unregister_device kobject_release device_release kfree

Call Trace of dereference vp_vdpa->mdev.pci_dev: vp_modern_remove pci_release_selected_regions pci_release_region pci_resource_len pci_resource_end (dev)->resource[(bar)].end

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 64b9f64f80a6f4b7ea51bf0510119cb15e801dc6 to before 4b1743bc715a3691a63ac21b349079b07bf1b19eAffected
  • 64b9f64f80a6f4b7ea51bf0510119cb15e801dc6 to before dc54ba9932aeaaa1a21fe214af1f446593a78274Affected
  • 64b9f64f80a6f4b7ea51bf0510119cb15e801dc6 to before eb057b44dbe35ae14527830236a92f51de8f9184Affected
LinuxLinux
  • 5.13Affected
  • before 5.13Not affected
  • 5.15.29 through 5.15.*Not affected
  • 5.16.15 through 5.16.*Not affected
  • 5.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.