summaryrefslogtreecommitdiff
path: root/src/libstrongswan/credentials/keys/signature_params.c
AgeCommit message (Collapse)Author
2021-11-24Reject RSASSA-PSS params with negative salt lengthTobias Brunner
The `salt_len` member in the struct is of type `ssize_t` because we use negative values for special automatic salt lengths when generating signatures. Not checking this could lead to an integer overflow. The value is assigned to the `len` field of a chunk (`size_t`), which is further used in calculations to check the padding structure and (if that is passed by a matching crafted signature value) eventually a memcpy() that will result in a segmentation fault. Fixes: a22316520b91 ("signature-params: Add functions to parse/build ASN.1 RSASSA-PSS params") Fixes: 7d6b81648b2d ("gmp: Add support for RSASSA-PSS signature verification") Fixes: CVE-2021-41990 Signed-off-by: Daniil Baturin <daniil@baturin.org>
2019-01-02New upstream version 5.7.2Yves-Alexis Perez
2018-02-20New upstream version 5.6.2Yves-Alexis Perez
2017-11-21New upstream version 5.6.1Yves-Alexis Perez