Bug 1552830 (CVE-2018-1084) - CVE-2018-1084 corosync: Integer overflow in exec/totemcrypto.c:authenticate_nss_2_3() function
Summary: CVE-2018-1084 corosync: Integer overflow in exec/totemcrypto.c:authenticate_n...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-1084
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1557440 1557441 1560467 1560468 1566480 1566481 1566482 1566506 1566507
Blocks: 1552837
TreeView+ depends on / blocked
 
Reported: 2018-03-07 20:02 UTC by Adam Mariš
Modified: 2021-02-17 00:41 UTC (History)
27 users (show)

Fixed In Version: corosync 2.4.4
Clone Of:
Environment:
Last Closed: 2018-04-19 13:05:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1169 0 None None None 2018-04-17 15:44:35 UTC

Description Adam Mariš 2018-03-07 20:02:54 UTC
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 12:16:21 UTC
Acknowledgments:

Name: Citrix Security Response Team

Comment 11 Raphael Sanchez Prudencio 2018-04-12 12:14:54 UTC
Created corosync tracking bugs for this issue:

Affects: openstack-rdo [bug 1566481]
Affects: fedora-all [bug 1566482]

Comment 14 errata-xmlrpc 2018-04-17 15:44:21 UTC
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 13:03:21 UTC
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.