Skip to content
  • Young Xiao's avatar
    kwbimage: fixing the issue with proper return code checking · 22515123
    Young Xiao authored
    
    
    EVP_VerifyFinal would return one of three values:
    1 if the data is verified to be correct;
    0 if it is incorrect;
    -1 if there is any failure in the verification process.
    
    The varification in unpatched version is wrong, since it ignored
    the return value of -1.
    
    The bug allows a malformed signature to be treated as a good
    signature rather than as an error. This issue affects the
    signature checks on DSA ans ECDSA keys used with SSL/TLS.
    
    This issue is similar to CVE-2008-5077, CVE-2009-0021,
    CVE-2009-0025, CVE-2009-0046 ~ CVE-2009-0049.
    
    Signed-off-by: default avatarYoung Xiao <92siuyang@gmail.com>
    Signed-off-by: default avatarStefan Roese <sr@denx.de>
    22515123