KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6211753fdfd05af9e08f54c8d0ba3ee516034878 · < dd3956a1b3dd11f46488c928cb890d6937d1ca80| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
There is a potential UAF scenario in the case of an LPI translation cache hit racing with an operation that invalidates the cache, such as a DISCARD ITS command. The root of the problem is that vgic_its_check_cache() does not elevate the refcount on the vgic_irq before dropping the lock that serializes refcount changes.
Have vgic_its_check_cache() raise the refcount on the returned vgic_irq and add the corresponding decrement after queueing the interrupt.
From the CVE record · Linux
The Linux kernel’s KVM arm64 LPI translation cache has a potential use-after-free when a cache hit races with a cache-invalidating operation, such as a DISCARD ITS command. This could occur because the cache lookup drops a lock without first increasing the interrupt’s reference count. The input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel with KVM on arm64 should check their versions; affected versions are not specified.