Highlights
Cryptography Bug: 1 prior fix. Scrutinize any change in this area.
k256/src/arithmetic/field.rs: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Cryptography Bug: The BatchInvert implementation for secp256k1 FieldElement failed to correctly handle non-normalized inputs and did not guarantee that output elements were always properly normalized, leading to incorrect cryptographic computations.
Side-Channel Attack: A variable-time basepoint lookup in SM2 generator multiplication exposed the implementation to timing and cache-based side-channel attacks, which required replacing with a constant-time table lookup.
Denial-of-Service: Unchecked slice operations (split_at) on untrusted ciphertext during SM2 PKE decryption allow remote attackers to cause application panics and crash the process via crafted inputs.