Description
In the Linux kernel, the following vulnerability has been resolved: LoongArch: KVM: Clear device pointer in irqchip destroy callbacks The destroy callbacks of the four irqchip devices free the device structure without clearing kvm->arch.{ipi,eiointc,pch_pic,dmsintc}, leaving a dangling pointer. ops->destroy() is not only called at VM teardown but also when KVM_CREATE_DEVICE succeeds and the following anon_inode_getfd() fails (e.g. under RLIMIT_NOFILE); the VM stays alive, kvm_arch_irqchip_in_kernel() still reports true, and interrupt injection dereferences the freed device. Clear the pointer when destroying.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c532de5a67a70f8533d495f8f2aaa9a0491c3ad0 to < 31fd58c1a228369d78fdb0f69d667a67d5a73d67affectedc532de5a67a70f8533d495f8f2aaa9a0491c3ad0 to < a9ce1a00afb0402668877d37c04ffd0e53d48832affected
Linux Linux
Default version status: affected
6.13affected0 to < 6.13unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected