Libevent
Libevent: decode_tag_internal() can lead to out-of-bounds read
Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent can read beyond a contiguous evbuffer region in event_tagging.c when decode_tag_internal requests at most five bytes from evbuffer_pullup but iterates using the full logical buffer length. A fragmented evbuffer containing a six-byte malformed tag can therefore advance past the pullup window and trigger an out-of-bounds read, which can crash a process that decodes attacker-controlled tagged RPC data. 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/91ed8745ee…
- Patch github.com/libevent/libevent/commit/e1f9e21887…
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.