LoongArch: KVM: Fix kvm_device leak in kvm_ipi_destroy()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: KVM: Fix kvm_device leak in kvm_ipi_destroy()
In kvm_ioctl_create_device(), kvm_device has allocated memory, kvm_device->destroy() seems to be supposed to free its kvm_device struct, but kvm_ipi_destroy() is not currently doing this, that would lead to a memory leak.
So, fix it.
From the CVE record · Linux
The Linux kernel's LoongArch KVM IPI device cleanup does not free an allocated kvm_device structure. Creating and destroying the device can therefore leak kernel memory; the input does not specify whether an attacker can trigger this or what access would be required.
Engineers running Linux kernels with LoongArch KVM should check their deployments; affected versions are not specified.