CVE-2026-99459: mshv_vtl: detach poll waiter on POLLFREE
In the Linux kernel, the following vulnerability has been resolved:
mshvvtl: detach poll waiter on POLLFREE
MSHVSETPOLLFILE keeps a poll wait entry after the ioctl returns. A file reference does not always pin the registered waitqueue: signalfdpoll() uses current->sighand->signalfdwqh, whose lifetime is tied to the task.
signalfdcleanup() sends POLLFREE before the sighand is freed. The MSHV callback currently leaves its entry linked, so wakeuppollfree() warns and a later replacement calls removewaitqueue() through a stale wqh pointer. A source-equivalent KASAN run reproduced:
BUG: KASAN: slab-use-after-free in rawspinlockirqsave rawspinlockirqsave removewaitqueue harnessioctl [mshvpollfreeharness]
The object belonged to sighandcache and had been released through slabfreeafterrcudebug() after cleanupsighand().
On POLLFREE, unlink the entry under the provider waitqueue lock. Preserve the existing CPU cancellation before publishing a NULL wqh, since a NULL load lets a racing replacement reuse the persistent poll state. Use a matching acquire load under RCU when removing a normal registration.
The callback takes no mutex and does not sleep, so the existing mutex-to-waitqueue-lock order is unchanged.
An LLM assisted the source audit, fix development, and validation of this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
On POLLFREE, unlink the poll wait entry under the provider waitqueue lock; when removing a normal registration, use a matching acquire load under RCU.