CVE-2026-99959: mshv_vtl: reject poll files with multiple waitqueues
In the Linux kernel, the following vulnerability has been resolved:
mshvvtl: reject poll files with multiple waitqueues
MSHVSETPOLLFILE invokes a file descriptor poll callback with a poll table backed by a single embedded wait entry. A poll callback may, however, register the table with more than one waitqueue. pipepoll() does this naturally for an ORDWR FIFO.
The second registration currently warns but then inserts the same list node into another list. The new insertion overwrites the entry links while the first waitqueue still points at it, corrupting the first waitqueue and causing an invalid callback traversal when that queue wakes.
Reject a second distinct waitqueue, remove the first registration through the common removal helper, and return -EINVAL from the ioctl. Repeated registration of the same waitqueue is treated as a no-op. A rejected replacement leaves the CPU slot unregistered, consistent with the existing remove-before-register ordering. Single-waitqueue users such as the OpenHCL iouring poll file keep their existing behavior.
An LLM assisted the source audit, fix development, and validation of this issue.