SPB Git

Repository Public

QYV-AUD-001.json 2.1 KB 25 lines json

1{2  "id": "QYV-AUD-001",3  "title": "ML-DSA Montgomery reduction returns q (not a value in (-q, q)) at the single boundary input a = 2^31*q",4  "severity": "info",5  "cvss_vector": "",6  "cvss_score": null,7  "cwe": "CWE-193",8  "masvs": "MASVS-CRYPTO-1",9  "area": "crypto",10  "location": "Sources/QyvoraMLDSA/MLDSAArithmetic.swift:62",11  "tool": "property-tests",12  "rule": "",13  "status": "open",14  "fix_commit": "",15  "regression_test": "security/tests/Tests/PropertyAuditTests/LatticeProperties.swift (MLDSAArithmetic.reductions)",16  "description": "The comment of MLDSA.Field.montgomeryReduce states that for |a| <= 2^31*q the result lies in the open interval (-q, q). The property test shows that for a = +2^31*q exactly the function returns q (congruent to 0, but outside the stated interval); for every other input of the domain -2^31*q <= a < 2^31*q the stated range holds (boundary values and 2 million random inputs per run, 50 million in full mode). This is the same boundary behaviour as the reference implementation of ML-DSA. Impact: none identified. The product 2^31*q can only be formed from the operand pair (-2^31, -q) or (2^31 is not representable), and every call site multiplies operands that are already reduced (|x| < q or bounded NTT coefficients), so the input is not reachable; conformance (ACVP, Wycheproof) and differential tests show no divergence.",17  "recommendation": "Correct the comment to the half-open domain -2^31*q <= a < 2^31*q, or keep as is. No code change required. The property test pins the behaviour so that any change is noticed.",18  "evidence": "Field.montgomeryReduce(Int64(1) << 31 * 8380417) == 8380417",19  "fingerprint": "",20  "proposed_disposition": "accepted-risk proposed by the audit; the decision belongs to the owner.",21  "resolution_note": "Still open. Unchanged: no code change is needed (boundary input not reachable); the property test pins the behaviour. Proposed disposition: accepted-risk proposed by the audit; the decision belongs to the owner.",22  "open_note": "Unchanged: no code change is needed (boundary input not reachable); the property test pins the behaviour.",23  "updated": "2026-12-04"24}25
Files main
Menu

Theme