Libevent
Libevent: `evtag_unmarshal_header()` decodes a wire `uint32` length into a signed `int` return value.
Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has an incorrect integer conversion in event_tagging.c when evtag_unmarshal_header uses evtag_decode_int to decode an attacker-controlled uint32 payload length and returns it as a signed int. Values above INT_MAX become negative or truncated, and evtag_unmarshal_string 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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.2.0-alpha, < 2.2.2-alpha
- < 2.1.13
Fixed in 2.2.2-alpha, 2.1.13
Mitigation
Upgrade libevent to 2.2.2-alpha or 2.1.13 or later.
References
- Vendor advisory github.com/libevent/libevent/security/advisori…
- Patch github.com/libevent/libevent/commit/109c164992…
- Patch github.com/libevent/libevent/commit/5e3c6ebe34…
2 more
- Release notes github.com/libevent/libevent/releases/tag/rele…
- Release notes github.com/libevent/libevent/releases/tag/rele…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.