Skip to content
Memory corruption Disclosed report Advanced

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.

geeknik Follow

Originally disclosed on HackerOne

Informational View original
  • 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

The original report as published on HackerOne, by geeknik. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Build the fuzz-consensus harness with MemorySanitizer and clang.
  2. Run the harness against the provided test input file.
  3. 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.

More by geeknik

View all

79 more disclosed reports, best first.

More from Tor

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.