Skip to content
Race condition Advisory Advanced CVE-2017-0161

NetBIOS Remote Code Execution Vulnerability (CVE-2017-0161)

A race condition in NetBT Session Services meant sequencing requirements were not maintained. An attacker able to send crafted NetBT Session Service packets could execute arbitrary code on the target.

Peter Hlavaty Follow

Originally disclosed on Microsoft

Critical 8.1 View original

Description

A race condition that could lead to a remote code execution vulnerability exists in NetBT Session Services when NetBT fails to maintain certain sequencing requirements. To exploit the vulnerability, an attacker needs to be able to send specially crafted NetBT Session Service packets to an impacted system. An attacker who successfully exploits the vulnerability could execute arbitrary code on the target. The security update addresses the vulnerability by correcting how NetBT sequences certain operations.

Windows NetBIOS

Windows NetBIOS

The original report as published on the Microsoft Security Response Center, by Peter Hlavaty ( @zer0mem ), KeenLab, Tencent. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 race condition in how NetBT Session Services sequences certain operations, allowing crafted packets to trigger unsafe behaviour.

Impact

An attacker who successfully exploits the vulnerability could execute arbitrary code on the target.

What the attacker needed

Ability to send crafted NetBT packets

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.

NetBIOS is an older Windows networking service that lets computers find each other and share resources on a local network. A race condition is when two actions happen at almost the same time and the program handles the order wrongly. Here that mistake could let someone who can send network packets run their own code on the machine.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by Peter Hlavaty

View all

18 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.