Security context

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

tongsuo-project/tongsuo
master @ baa1bb2
12
Fixes
0
CVEs
HIGH
Peak severity
8.3%
Coverage
Highlights
Memory Corruption: 4 prior fixes. Scrutinize any change in this area.
ssl/record/rec_layer_s3.c: most-fixed (2 issues). Treat as high-risk during review.
5 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 Corruption: Improperly managed reference-counted cryptographic objects can lead to premature destruction or double-free scenarios. Using proper initialization functions is critical to maintain memory sanity in zero-knowledge proof structures.
Side-Channel Attack: Violations of constant-time operations during RSA decryption allow Bleichenbacher-style timing attacks (CVE-2022-4304). Ensuring arithmetic implementations are side-channel resistant is paramount to key confidentiality.
Memory Corruption: Allocating memory based on the size of the key rather than the context structure itself represents a structural allocation error that can lead to heap corruptions during field access.