Bug 1552830 - (CVE-2018-1084) CVE-2018-1084 corosync: Integer overflow in exec/totemcrypto.c:authenticate_nss_2_3() function
CVE-2018-1084 corosync: Integer overflow in exec/totemcrypto.c:authenticate_n...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20180412,repo...
: Security
Depends On: 1560468 1566481 1557440 1557441 1560467 1566480 1566482 1566506 1566507
Blocks: 1552837
  Show dependency treegraph
 
Reported: 2018-03-07 15:02 EST by Adam Mariš
Modified: 2018-04-19 09:05 EDT (History)
27 users (show)

See Also:
Fixed In Version: corosync 2.4.4
Doc Type: If docs needed, set a value
Doc Text:
An integer overflow leading to an out-of-bound read was found in authenticate_nss_2_3() in Corosync. An attacker could craft a malicious packet that would lead to a denial of service.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-19 09:05:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1169 None None None 2018-04-17 11:44 EDT

  None (edit)
Description Adam Mariš 2018-03-07 15:02:54 EST
Potential pre-authentication buffer overflow due to integer overflow in
exec/totemcrypto.c:authenticate_nss_2_3() function can lead to denial of
service or potentially to remote code execution.

Vulnerable code:

static int authenticate_nss_2_3 (
    struct crypto_instance *instance,
    unsigned char *buf,
    int *buf_len)
{
    if (hash_to_nss[instance->crypto_hash_type]) {
        unsigned char tmp_hash[hash_len[instance->crypto_hash_type]];
        int datalen = *buf_len - hash_len[instance->crypto_hash_type];

        if (calculate_nss_hash(instance, buf, datalen, tmp_hash) < 0) {
            return -1;
        }
...
Comment 10 Adam Mariš 2018-04-11 08:16:21 EDT
Acknowledgments:

Name: Citrix Security Response Team
Comment 11 Raphael Sanchez Prudencio 2018-04-12 08:14:54 EDT
Created corosync tracking bugs for this issue:

Affects: openstack-rdo [bug 1566481]
Affects: fedora-all [bug 1566482]
Comment 14 errata-xmlrpc 2018-04-17 11:44:21 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:1169 https://access.redhat.com/errata/RHSA-2018:1169
Comment 16 Raphael Sanchez Prudencio 2018-04-19 09:03:21 EDT
An integer overflow leading to an out-of-bound read was found in authenticate_nss_2_3() in Corosync. An attacker could craft a malicious packet that would lead to a denial of service.

Note You need to log in before you can comment on or make changes to this bug.