{"id":"XE-0677","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":242,"title":"[VM/High] TOCTOU race in DevTargetManager.SpawnSession — shells survive lease teardown","area":null,"claimed_tier":"high","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-05T11:28:38.489785+00:00","updated_at":"2026-11-05T22:19:33.937365+00:00","source_created_at":null,"told_at":"2026-11-05T22:19:34.032246+00:00","status_changed_at":"2026-11-05T22:19:34.004997+00:00","url":"https://bounty.xe.network/XE-0677","body":"## Summary\n`vm/dev_target.go:61-89`: SpawnSession reads target status under RLock, releases it, then checks status and spawns bash. Between RUnlock and exec.Command, Teardown can acquire write lock, change status to stopped, and delete target. SpawnSession proceeds anyway.\n\n## Impact\nShells survive lease teardown — the goroutine keeps bash alive indefinitely with no lifecycle management. Orphaned shells accumulate consuming host resources.\n\n## Fix\nHold write lock for entire SpawnSession critical section, or use a lease-scoped context that Teardown cancels.","patch_refs":[],"thread":[{"id":493,"source":"desk","source_ref":"reply:219","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as https://bounty.xe.network/XE-0659, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, reply with what differs and we will look again.","created_at":"2026-11-05T22:19:33.937365+00:00"}]}