You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTTP/3: fully fix dirty-list use-after-free (unlink conn on free) #62
Follow-up to the arm_timer NULL-guard merged in #61 (#59), which mitigates but does not fully eliminate the Phase-1 dirty-list UAF.
Residual
http3_connection_free does not unlink the connection from the listener's dirty list (dirty_head / conn->dirty_next / conn->in_dirty). If a conn is freed while still marked dirty, it dangles on the list. The arm_timer guard catches the common manifestation (OPENSSL_cleanse zeroes ngtcp2_conn → NULL → guard skips), but if the freed slot is reallocated to a new live conn (ngtcp2_conn != NULL) before the next http3_listener_flush_dirty, the guard passes and the walk operates on the wrong conn — a narrow but real UAF window.
Fix
Add http3_listener_unmark_flush(l, conn) — unlink conn from dirty_head (walk dirty_next) if in_dirty, clear the flags.
Call it in http3_connection_free before teardown.
Keep the arm_timer guard as defense-in-depth.
Verify: sustained c=64 crash-stress (the regime that surfaced the original crash) + phpt 25/25.
Activity
Merge pull request #63 from true-async/62-fully-fix-dirty-list-uaf