Skip to content

Commit d09cbd7

Browse files
Add advisory for libcrux-ml-dsa
1 parent 28c3c45 commit d09cbd7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "libcrux-ml-dsa"
5+
date = "2026-03-04"
6+
cvss = "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
7+
url = "https://github.com/cryspen/libcrux/pull/1348"
8+
9+
[affected.functions]
10+
"libcrux_ml_dsa::ml_dsa_44::verify" = [ "<= 0.0.7" ]
11+
"libcrux_ml_dsa::ml_dsa_65::verify" = [ "<= 0.0.7" ]
12+
"libcrux_ml_dsa::ml_dsa_87::verify" = [ "<= 0.0.7" ]
13+
14+
[versions]
15+
patched = [">= 0.0.8 "]
16+
```
17+
18+
# Panic in Signature Hint Decoding During Verification
19+
20+
During ML-DSA verification the serialized hint values are decoded as
21+
specified in algorithm 22 `HintBitUnpack` of [FIPS 204, subsection
22+
7.1](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf#%5B%7B%22num%22%3A120%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22FitH%22%7D%2C657%5D). The
23+
algorithm requires that the cumulative hint counters per row of the
24+
hint vector are strictly increasing and below a maximum value which
25+
depends on the choice of ML-DSA parameter set (line 4).
26+
27+
In libcrux-ml-dsa, hint decoding did not check the boundedness of the
28+
cumulative hint counter of the last row of the hint vector.
29+
30+
## Impact
31+
A manipulated invalid hint can cause an out-of-bounds memory access
32+
since the hint decoding logic may attempt to read outside the bounds
33+
of the serialized signature, causing a runtime panic.
34+
35+
## Mitigation
36+
Starting from version `0.0.8`, hint decoding will check the cumulative
37+
hint counter of the last row as well.

0 commit comments

Comments
 (0)