Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 612e9f2b9828a4e7979c5036eef0d70fb3ec48bdf798edcd1b52a11a4680b772
Ticket: ee1341ff89edd6c53fbc2bf558ffe02dc6f9c30f
Use-after-free if Thread is initialized in a sub-interpreter before the root
User & Date: aleteoryx on 2024-11-09 01:02:51
Changes

  1. comment changed to:
    Repro available at [https://gist.github.com/winrg/7fa3ac2a9b2b9f35bc4888ce0adaef46]
    
    In short, if Thread is initialized in a sub-interpreter, and said interpreter is deleted, then thread::send events will cause the thread to segfault.
    
    I believe this happens because thread::send events get routed to the deleted sub-interpreter instead of the main thread. Realistically this is not exploitable in most circumstances.
    
  2. login: "aleteoryx"
  3. mimetype: "text/plain"