Skip to content
Memory corruption Disclosed report Advanced

Several protocol parsers in before 4.9.2 could cause a buffer overflow in util-print.c:bittok2str_internal()

A local buffer in the packet-printing code was not checked against the actual payload size, so a crafted network packet could overflow it. The reporter believes this allows a remote denial of service and possibly remote code execution, though they did not verify the latter.

bags Follow

Originally disclosed on HackerOne

Critical 9.8 View original
  • Fixed in 17 months
  • Paid in 17 months
  • Disclosed after 18 months

Length of a local buffer used to parse network packets was not validated against actual payload size leading to a classic buffer overflow.

P.S. I was not aware of this bounty program at the time of reporting. Is this report in scope? I have a few more reports that were originally sent to the tcpdump security mailing list, I could file a report for each of them here if that qualifies. I may have also helped fix some issues in 4.9.3 as well.

Impact

I believe remote DoS is possible. Remote code execution remains a possibility but I have not checked this myself.

The original report as published on HackerOne, by bags. 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 the code that converts packet data to a string did not check the payload length against the size of its local buffer before writing.

Impact

A remote attacker could cause a denial of service, and remote code execution may be possible but was not confirmed by the reporter.

What the attacker needed

Send a crafted network packet

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.

A program that reads network packets uses a local buffer when parsing packet data. If the payload is larger than the buffer, data can overflow it. This can crash the program, and running code may be possible.

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 bags

View all

3 more disclosed reports, best first.

More from Internet Bug Bounty

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.