Use of uninitialized value in networkstatus_parse_vote_from_string (src/or/routerparse.c:3533)
A fuzzing harness built with MemorySanitizer found that parsing a crafted consensus vote input reads an uninitialised value in the networkstatus parser. The text does not describe any attacker impact beyond the sanitizer warning itself.
- Triaged in 16 days
- Disclosed after 21 days
Triggered in 22139c0, compiled with -fsanitize=memory and clang 6.0.0-trunk.
./fuzz-consense < test000bbb
==9293==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x5611f7f7e4de in networkstatus_parse_vote_from_string /root/tor/src/or/routerparse.c:3533:23
#1 0x5611f75bbbd1 in fuzz_main /root/tor/src/test/fuzz/fuzz_consensus.c:66:8
#2 0x5611f75bb29d in main /root/tor/src/test/fuzz/fuzzing_common.c:179:3
#3 0x7f9914298b44 in __libc_start_main /build/glibc-6V9RKT/glibc-2.19/csu/libc-start.c:287
#4 0x5611f75488ce in _start (/root/tor/src/test/fuzz/fuzz-consensus+0x3bc8ce)
SUMMARY: MemorySanitizer: use-of-uninitialized-value /root/tor/src/or/routerparse.c:3533:23 in networkstatus_parse_vote_from_string
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a code path in the consensus vote parser uses a variable or buffer field before it has been assigned.
Impact
The text only shows a sanitizer finding; it does not claim any concrete attacker impact, though uninitialised reads could cause incorrect parsing behaviour or a crash.
What the attacker needed
Ability to supply a consensus vote document
How it was found
- Build the fuzz-consensus harness with MemorySanitizer and clang.
- Run the harness against the provided test input file.
- Observe the MemorySanitizer report pointing at the parser.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program reads memory it never wrote to, the value is unpredictable. MemorySanitizer flags this. Here a fuzzer fed input to Tor's parser and the parser used such an unwritten value.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.