Describe the bug
I stumbled upon STM32 build process using busybox64.exe to run its build scripts, which executes BusyBox's uname. That resulted in a bunch of exceptions and a "Critical event" being logged. A similar crash seems to happen when less is invoked.
I downloaded the latest 64-bit (unicode-enabled) version (1.38.0-FRP-5579-g5749feb35) just to be sure the issue hasn't yet been fixed.
The crash seems to occur at busybox+0x3f2ae :
onecore\net\netprofiles\service\src\nsp\dll\namespaceserviceprovider.cpp(616)\nlansp_c.dll!00007FFD7F54653A: (caller: 00007FFDA507205C) LogHr(1) tid(a160) 8007277C No such service is known. The service cannot be found in the specified name space.
onecore\net\netprofiles\service\src\nsp\dll\namespaceserviceprovider.cpp(616)\nlansp_c.dll!00007FFD7F54653A: (caller: 00007FFDA507205C) LogHr(2) tid(a160) 8007277C No such service is known. The service cannot be found in the specified name space.
(a3a8.a160): Security check failure or stack buffer overrun - code c0000409 (!!! second chance !!!)
The following text is also visible after the crash "The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application."
After searching for other similar issues, I did stumble upon Git for Windows struggling with Mandatory ASLR, but force-disabling that had no effect. Unfortunately I don't know how to debug this further to see what exactly Windows doesn't like.
Looking at threads online, the errors before the crash are because of the GetHostByName and GetHostName W11 deprecation: https://stackoverflow.com/a/70978244/4636860 (And 00007FFD7F54653A was busybox+0x6e47e, which matches a gethostname call in the disassembly. But this does not seem to be the cause of the crash.)
To Reproduce
Run the following script:
#!/bin/sh -
echo 'a' | less
Describe the bug
I stumbled upon STM32 build process using busybox64.exe to run its build scripts, which executes BusyBox's
uname. That resulted in a bunch of exceptions and a "Critical event" being logged. A similar crash seems to happen whenlessis invoked.I downloaded the latest 64-bit (unicode-enabled) version (
1.38.0-FRP-5579-g5749feb35) just to be sure the issue hasn't yet been fixed.The crash seems to occur at
busybox+0x3f2ae:The following text is also visible after the crash "The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application."
After searching for other similar issues, I did stumble upon Git for Windows struggling with Mandatory ASLR, but force-disabling that had no effect. Unfortunately I don't know how to debug this further to see what exactly Windows doesn't like.
Looking at threads online, the errors before the crash are because of the
GetHostByNameandGetHostNameW11 deprecation: https://stackoverflow.com/a/70978244/4636860 (And00007FFD7F54653Awasbusybox+0x6e47e, which matches agethostnamecall in the disassembly. But this does not seem to be the cause of the crash.)To Reproduce
Run the following script: