Issue 45630 in oss-fuzz: elfutils:fuzz-libelf: Use-of-uninitialized-value in validate_str
da… via monorail
monorail+v2.1355924921@chromium.org
Sun Mar 20 09:57:07 GMT 2022
Comment #2 on issue 45630 by da...@adalogics.com: elfutils:fuzz-libelf: Use-of-uninitialized-value in validate_str
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45630#c2
MSAN report:
Running: /mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/crash-ecd598ded30b07196a2ab343f59f7a25442f0560
==744==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x538d7b in validate_str /src/elfutils/libelf/elf_strptr.c:61:4
#1 0x5383fe in elf_strptr /src/elfutils/libelf/elf_strptr.c:188:11
#2 0x527361 in fuzz_logic_one /src/fuzz-libelf.c:37:26
#3 0x527cec in LLVMFuzzerTestOneInput /src/fuzz-libelf.c:82:3
#4 0x4551d2 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
#5 0x440d82 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6
#6 0x4465ec in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9
#7 0x46ef82 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#8 0x7fd73ce3f0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/libc-start.c:308:16
#9 0x41f4cd in _start
Uninitialized value was created by a heap allocation
#0 0x4d49ad in __interceptor_malloc /src/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:911:3
#1 0x53feb1 in __libelf_decompress /src/elfutils/libelf/elf_compress.c:227:19
#2 0x5408d7 in __libelf_decompress_elf /src/elfutils/libelf/elf_compress.c:300:19
#3 0x538903 in get_zdata /src/elfutils/libelf/elf_strptr.c:45:17
#4 0x537c19 in elf_strptr /src/elfutils/libelf/elf_strptr.c:135:38
#5 0x527361 in fuzz_logic_one /src/fuzz-libelf.c:37:26
#6 0x527cec in LLVMFuzzerTestOneInput /src/fuzz-libelf.c:82:3
#7 0x4551d2 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
#8 0x440d82 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:324:6
#9 0x4465ec in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:860:9
#10 0x46ef82 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#11 0x7fd73ce3f0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/libc-start.c:308:16
--
You received this message because:
1. You were specifically CC'd on the issue
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings
Reply to this email to add a comment.
More information about the Elfutils-devel
mailing list