Closed hdthky closed 2 years ago
@hdthky This is NOT an actionable memory leak. LeakSanitizer is reporting that 41 bytes were allocated, pointers not lost, and not freed before the process exits. But since the OS reclaims all memory on process exit, there is no point in freeing these pointers before exit.
Description
Whilst experimenting with
htmldoc
, built from commit 31f7804, we are able to induce memory leaks in functionstrdup
, using a harness compiled fromhtmldoc/htmldoc.cxx
.Because the allocated memory has not been freed , memory leaks will be triggered when the software encounters a malformed file, resulting in exhausted system resources or denial of service.
Proof of Concept
The POC is: poc_memory_leak
The command is:
./htmldoc --webpage -t pdf -f /dev/null poc_memory_leak
The ASAN report is:
Impact
This vulnerability is capable of inducing denial of service.