TCP protocol bug in currently released Windows PE ADK addon

Copper Contributor

We were hitting intermittent issues with mapping network drives during our MDT deployment sequence with the latest MDT and ADK/PE. After capturing packets and getting reliable steps to reproduce, we now know it is a bug in the currently released Windows PE, version 10.0.18362.1 .

 

The bug is in how the PE on the client handles a response from the server when the client uses an ephemeral port that was recently used and is half-open (server-side). An MDT task sequence can contain many reboots, leading to use of many ephemeral ports and leaving connections open only on the server side, so if you enter the PE soon after a previous sequence, this is likely to happen.

 

The server will respond to the client's initial SYN packet with a SYN-free ACK. The client is supposed to see this response and issue a RST. Windows 10 1803, 1903, and the associated PE environments on their install media do precisely that. But PE 10.0.18362.1 instead tries a few different ephemeral ports with increasing persistence and eventually gives up.

 

This bug is easy to reproduce. Set up a share on a server, and create a PE iso and a VM that boots from it. At the VM's command prompt, run

net use ***your share/credentials***
wpeutil reboot

Repeat this 5 times. By the 5th time, the net use will incur a noticeable delay. You can continue repeating until it fails. If you run packet capture software on the server side, you can see the client's incorrect behavior.

 

Is there any workaround for this? How can I make sure this bug is received by the appropriate team and addressed in a timely manner?

Stack overflow discussion that evolved as issue was investigated

0 Replies