REDHAT-BUG-2520658: High severity libevent libevent vulnerability
Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has an incorrect integer conversion in eventtagging.c when evtagunmarshalheader uses evtagdecodeint to decode an attacker-controlled uint32 payload length and returns it as a signed int. Values above INTMAX become negative or truncated, and evtagunmarshalstring can use the converted value in allocation sizing, producing a wrapped large allocation request and denial of service. This issue is fixed in versions 2.1.13 and 2.2.2-alpha.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libeventto a version that resolves this vulnerability.Fixed in 2.1.13 - Upgrade
Upgrade
libeventto a version that resolves this vulnerability.Fixed in 2.2.2-alpha
Event History
Frequently Asked Questions
What does an attacker need to send to trigger the denial of service?
The attacker needs to control a uint32 payload length processed by evtag_unmarshal_header. A value above INT_MAX can become negative or truncated during conversion and later cause a wrapped large allocation request in evtag_unmarshal_string.
Which versions contain the fix?
The issue is fixed in libevent 2.1.13 and 2.2.2-alpha. Versions prior to 2.1.13 and 2.2.2-alpha are affected.