Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

smithay/calloop
master @ 9252986
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Memory Safety: 3 prior fixes. Scrutinize any change in this area.
src/loop_logic.rs: most-fixed (1 issue). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Memory Safety: The OS polling interface relies on raw token pointers which can result in use-after-free vulnerabilities when registered event sources are dropped. Proper tracking and management of pointer lifetimes within the polling backend is critical.
Memory Safety: Replacing and removing event sources within the event loop without invalidating or versioning associated tokens can cause token reuse and use-after-free errors when late events fire.
Memory Safety: Executors handling !Send futures must ensure that futures are dropped on their home thread during executor teardown, otherwise thread-bound resources can be corrupted.