msgpack-c heap corruption in vrefbuffer migration
msgpack-c
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| msgpack msgpack-c |
| No fix yet |
Original description
msgpack-c through 7.0.2 contains a heap buffer overflow vulnerability in msgpack_vrefbuffer_migrate() in src/vrefbuffer.c that checks capacity against the source array's end pointer. When migrating between vrefbuffers of unequal size, the realloc is skipped and memcpy() writes iovec entries past the destination array, corrupting adjacent heap memory or crashing the application.
From the CVE record · VulnCheck