CI run 29647981277 exposed a Linux unit-shard UAF in finishInspectorClient while the module-worker inspector target was closing.
Root cause:
runtime_detached is published before the final event-queue pushes/close, so the owner can wake and destroy InspectorClient.events while the worker still uses it.
- queued inspector commands retain raw
InspectorClient pointers without ownership, so commands already behind a terminal detach/failure can outlive the owner reference.
Acceptance:
CI run 29647981277 exposed a Linux unit-shard UAF in
finishInspectorClientwhile the module-worker inspector target was closing.Root cause:
runtime_detachedis published before the final event-queue pushes/close, so the owner can wake and destroyInspectorClient.eventswhile the worker still uses it.InspectorClientpointers without ownership, so commands already behind a terminal detach/failure can outlive the owner reference.Acceptance: