Closed xiaoxiaoafeifei closed 8 months ago
Hi, and thanks for reporting this. It's quite a catch!
I have pushed a fix for it. Please let me know if you run into any more.
BTW, I don't consider this to be particularly worrisome from a security standpoint. It requires the command-line program (which are not standard in any repo) and it requires both a crafted WavPack file and a crafted command line. Further, all it can cause is an exception (i.e., no code injection).
Nevertheless, I'm glad I was able to fix it before my imminent release!
Hi, I found a null pointer dereference at cli/wvunpack.c:911
Here's ASAN log:
AddressSanitizer:DEADLYSIGNAL
==84257==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x561b47a970c6 bp 0x7fff13952fb0 sp 0x7fff1394fca0 T0) ==84257==The signal is caused by a WRITE memory access. ==84257==Hint: address points to the zero page.
0 0x561b47a970c5 in main cli/wvunpack.c:911
AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV cli/wvunpack.c:911 in main ==84257==ABORTING
Steps to Reproduce ./configure --disable-shared CFLAGS="-fsanitize=address -ggdb" CXXFLAGS="-fsanitize=address -ggdb" make & make install /usr/local/bin/wvunpack -m poc.wv -o /
poc.ZIP