Description
In the Linux kernel, the following vulnerability has been resolved: xen/pvcalls: destroy the per-socket workqueue on release pvcalls_new_active_socket() gives every active socket its own ordered workqueue: map->ioworker.wq = alloc_ordered_workqueue("pvcalls_io", 0); and nothing ever destroys it. pvcalls_back_release_active() flushes map->ioworker.register_work and frees map, but the workqueue and its pool_workqueues stay allocated, so a frontend leaks a workqueue per socket it connects and releases - a loop a guest can run as long as it likes. Destroy it right after flush_work(): the IRQ is disabled and sk_data_ready restored by then, so nothing can queue new work, and the rings are still mapped while it drains - pvcalls_conn_back_read() reads map->ring and map->data, which xenbus_unmap_ring_vfree() takes away a few lines later. pvcalls_back_ioworker() does not take fedata->socket_lock, which the backend_disconnect() caller holds here - only the socket's own sk_receive_queue lock - so draining it from this point is safe; the flush_work() just above already has the same requirement.
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
5db4d286a8ef88a04247a005df9cdd4bce3c7673 to < 16d96e7e66b35c9e973fc38012ad86672711d67daffected5db4d286a8ef88a04247a005df9cdd4bce3c7673 to < 3cf61f777a03607cad262ff84965ebc3ab39b4d1affected5db4d286a8ef88a04247a005df9cdd4bce3c7673 to < 7893591b58a2bd9f9a9be55beccf4a558c4d3b8faffected5db4d286a8ef88a04247a005df9cdd4bce3c7673 to < 99e1b9ddd5eeb209995e59a99825231ec47b178aaffected5db4d286a8ef88a04247a005df9cdd4bce3c7673 to < 2b8684f416fa89c6818100f66602b3548d826ab7affected5db4d286a8ef88a04247a005df9cdd4bce3c7673 to < 6b3feb6bfa9ac384f7a3ec25c40b9b4d3da96d25affected
Linux Linux
Default version status: affected
4.14affected0 to < 4.14unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/16d96e7e66b35c9e973fc38012ad86672711d67d ↗
- https://git.kernel.org/stable/c/3cf61f777a03607cad262ff84965ebc3ab39b4d1 ↗
- https://git.kernel.org/stable/c/7893591b58a2bd9f9a9be55beccf4a558c4d3b8f ↗
- https://git.kernel.org/stable/c/99e1b9ddd5eeb209995e59a99825231ec47b178a ↗
- https://git.kernel.org/stable/c/2b8684f416fa89c6818100f66602b3548d826ab7 ↗
- https://git.kernel.org/stable/c/6b3feb6bfa9ac384f7a3ec25c40b9b4d3da96d25 ↗