Mitigate Baron SameEdit (CVE-2021-3156) vulnerability

fedora 25
crypto weakness #15

4

Weakness Breakdown


Definition:

This weakness involves creating non-standard or non-tested algorithms, using weak algorithms or applying cryptographic algorithms incorrectly. Algorithms that were once considered safe are commonly later found to be unsafe, as the algorithms were broken.

Warning code(s):

These keysizes are too small given today's computers.

File Name:

kdelibs4support-5.38.0/src/kssl/kopenssl.cpp

Context:

The highlighted line of code below is the trigger point of this particular Fedora 25 crypto weakness.

         return (K_EVP_des_ede3_cbc)();
    } else {
        return nullptr;
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_des_cbc()
{
    if (K_EVP_des_cbc) {
        return (K_EVP_des_cbc)();
    } else {
        return nullptr;
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_rc2_cbc()
{
    if (K_EVP_rc2_cbc) {
        return (K_EVP_rc2_cbc)();
    } else {
        return nullptr;
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_rc2_64_cbc()
{
    if (K_EVP_rc2_64_cbc) {
        return (K_EVP_rc2_64_cbc)();
    } else {
        return nullptr;
    }
}

EVP_CIPHER *KOpenSSLProxy::EVP_rc2_40_cbc()
{
    if (K_EVP_rc2_40_cbc) {
        return (K_EVP_rc2_40_cbc)();
    } else {
        return nullptr;
    }
}

int KOpenSSLProxy::i2d_X509_REQ_fp(FILE *fp, X509_REQ *x)
{
    if (K_i2d_X509_REQ_fp) {
        return (K_i2d_X509_REQ_fp)(fp, x);
    } else {
        return -1;
    }
} 

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.