Description
libmspack through 0.11alpha contains an uninitialized pointer free vulnerability in kwajd_open() in mspack/kwajd.c that frees unzeroed filename and extra pointers on header read errors. Attackers can supply a truncated, empty, or wrong-signature KWAJ file to crash the process or obtain an arbitrary-free memory corruption primitive.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
kyz libmspack
Default version status: unaffected
0 to ≤ 0.11alphaaffected
pkg:github/kyz/libmspackReferences
- https://github.com/kyz/libmspack/commit/4d868504114346aa767d435fbb89a8b76603493f ↗
- https://github.com/kyz/libmspack/blob/v0.11alpha/libmspack/mspack/kwajd.c#L111-L181 ↗
- https://hackmd.io/@haind-pwn/libmspack-kwaj-uninitialized-free ↗
- https://www.vulncheck.com/advisories/libmspack-through-0-11alpha-uninitialized-pointer-free-via-kwajd-open-error-path ↗