Description
In the Linux kernel, the following vulnerability has been resolved: misc: vmw_vmci: wait for callbacks in event unsubscribe event_deliver() calls the callbacks of the subscribers inside an RCU read side critical section. vmci_event_unsubscribe() used to call synchronize_rcu() before it freed the subscription. This did more than to protect the struct vmci_subscription: when the function returned, no callback was running any more, and its callers rely on that. vmci_transport_free_resources() unsubscribes from VMCI_EVENT_QP_PEER_DETACH and frees the struct vmci_transport, which is the callback data, a few lines later: CPU0 CPU1 event_deliver() rcu_read_lock() vmci_transport_peer_detach_cb() vmci_event_unsubscribe() list_del_rcu(&s->node) kvfree_rcu_mightsleep(s) kfree(transport) spin_lock_bh(&trans->lock) The event is sent when the peer of the queue pair detaches, so the other end of a vsock connection chooses the time. vmci_transport_exit() and vmci_guest_remove_device() unsubscribe callbacks which are gone with their module. kvfree_rcu_mightsleep() only waits for a grace period if it cannot allocate memory. Bring the synchronize_rcu() back. The cleanup work of the vmci transport now waits for one grace period per socket again.
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
6da3f33770e08348691d90455ef6149e15551854 to < 05ade3d4267180576cd515c0801268a89c708e3eaffected6da3f33770e08348691d90455ef6149e15551854 to < 29f37ec79e879964e6ad7fe37500362517c880bdaffected6da3f33770e08348691d90455ef6149e15551854 to < 5ef59aa7e67cc1dfc8aa24ebea7128eb0b397ea3affected6da3f33770e08348691d90455ef6149e15551854 to < 824a27d391cf934d3232e8e2dabee221fc4e18aeaffected
Linux Linux
Default version status: affected
5.17affected0 to < 5.17unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc4 to ≤ *unaffected