LoongArch: KVM: Fix kvm_device leak in kvm_eiointc_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_eiointc_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_eiointc_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 device destruction path does not free an allocated kvm_device structure, causing a memory leak. The leak occurs when a device created through kvm_ioctl_create_device() is destroyed; the input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with LoongArch KVM should check their versions; affected versions are not specified.