Security

Process exit race freed memory twice

KSA-2026-0004

Status
Resolved
Severity
High
Affected versions
No released version (development code from before 0.2.0)
Fixed in
0.2.0
Published
2026-11-02
Updated
2026-11-02

Summary

When two threads of a program exited at the same moment, or an exit raced a kill, the process teardown could run twice. Its memory pages were then freed twice and could be handed to another program while still in use, so one program could read or change another's memory.

Only the first exit now tears the process down. This was found and fixed before the first public release.

Credit

Brent Gordon