C++ Std::Condition_Variable Null Pointer Derreference
This story is about a bug generated by g++ and clang compilers (at least)
The condition_variables is a feature on the standard library of c++ (libstdc++), when its compiled statically a weird asm code is generated.
Any example on the link below will crash if its compiled statically:
https://en.cppreference.com/w/cpp/thread/condition_variable
In this case the condition_variable.wait() crashed, but this happens with other methods, a simple way to trigger it:
If this program is compiled dynamically the crash doesn't occur:
Looking the dissasembly there is a surprise created by the compiler:
Compilers:
g++ 9.2.1+20200130-2
clang++ v9
Both compilers are generating the "call 0x00"
If we check this call in a dynamic compiled:
The implementation of condition_variable in github:
https://github.com/gcc-mirror/gcc/blob/b7c9bd36eaacac42631b882dc67a6f0db94de21c/libstdc%2B%2B-v3/include/std/condition_variable
The compilers can't copile well this code in static, and same happens on other condition_variable methods.
I would say the _lock is being assembled improperly in static, is not exacly a null pointer derreference but the effects are the same, executing code at address 0x00 which on linux is a crash on most of cases.
Related articles
- Hacking Tools
- Hacking Tools For Pc
- New Hacker Tools
- Hack Tools
- Nsa Hack Tools Download
- Pentest Tools Github
- Hacking Tools
- Hack Tools For Ubuntu
- Hacker Tools For Ios
- Top Pentest Tools
- Hacker Tools 2019
- Hacker Tools 2019
- Hak5 Tools
- Hack Tools Download
- Physical Pentest Tools
- Hacking Tools For Games
- Tools 4 Hack
- Hackers Toolbox
- Hacker Hardware Tools
- Pentest Tools Nmap
- Hacking Tools Kit
- Github Hacking Tools
- Hack Tools Github
- Pentest Tools Free
- Android Hack Tools Github
- Hacker Tools Free
- Pentest Tools Kali Linux
- Hacking Tools For Kali Linux
- Easy Hack Tools
- Pentest Tools Tcp Port Scanner
- Hack Website Online Tool
- Hacker Tool Kit
- Pentest Tools Bluekeep
- Pentest Tools Windows
- Hacking Tools 2019
- Pentest Reporting Tools
- Hacker Tool Kit
- Hack Tools For Windows
- Usb Pentest Tools
- Hacking Tools For Windows 7
- Wifi Hacker Tools For Windows
- Hacker Tools Windows
- Hack Tools 2019
- Hacking Tools For Windows 7
- Hacking Tools And Software
- Pentest Tools
- Hack Tools
- Hacking Tools Windows
- Hacks And Tools
- Hacking Apps
- Hacking Tools 2020
- How To Hack
- Android Hack Tools Github
- Android Hack Tools Github
- Hacker Tools Windows
- Pentest Tools Website Vulnerability
- Pentest Tools Review
- Hak5 Tools
- Pentest Tools Nmap
- Tools 4 Hack
- Hack Tools For Games
- Hacker Tools 2020
- Hacking Tools Name
- Pentest Tools Review
- Pentest Tools Linux
- What Is Hacking Tools
- Hacking Apps
- Pentest Tools Linux
- Pentest Recon Tools
- Best Hacking Tools 2019
- Hacking Tools For Games
- Hacks And Tools
- Pentest Box Tools Download
- Tools For Hacker
- Underground Hacker Sites
- Hacking Tools For Windows Free Download
- Hacker Tools Free
- Hacking Tools Download
- Pentest Box Tools Download
- Nsa Hacker Tools
- Nsa Hack Tools
- Pentest Tools List
- Hacking Tools Online
- Hacking Tools Github
- Pentest Tools
- Pentest Tools Url Fuzzer
- Pentest Tools Github
- Black Hat Hacker Tools
- Hacking Tools Software
- Hacking Tools For Mac
- Pentest Tools List
- Hack Website Online Tool
- Easy Hack Tools
- Pentest Tools Website Vulnerability
- Hacking Tools Pc
- Hack And Tools
- How To Make Hacking Tools
- Hack Apps
- Hack Website Online Tool
- Hacker Search Tools
- Hack Website Online Tool
- Hackrf Tools
- Hack Tools For Pc
- How To Make Hacking Tools
- World No 1 Hacker Software
- Hacker
- Hack Tools For Mac
- Pentest Tools Nmap
- Pentest Tools For Android
- Hacking Tools For Kali Linux
- Pentest Automation Tools
- How To Make Hacking Tools
- Hack Rom Tools
- Pentest Tools For Ubuntu
- Pentest Tools Website
- Hack Tools For Windows
- Pentest Tools Bluekeep
- Hacker Tools List
- Pentest Tools Subdomain
- What Are Hacking Tools
- Pentest Tools Port Scanner
- Hacking Tools Pc
- Hacker Tools Software
- Hacker Tools Linux
- Hack Website Online Tool
- Pentest Tools Alternative
- Hacking Tools Github
- Hack Tools
- Hacking Apps
- What Is Hacking Tools
- Pentest Tools Find Subdomains
- Hack Tools Online
- Hack Rom Tools
- Hack Tools For Mac
- Pentest Tools Online
- Hack Tools For Pc
- Hack Tools For Windows
- Hack Tools Download
- Hacking Tools For Kali Linux
- Hacking Tools Windows
- Hackers Toolbox
- Hacker Tools Hardware
- Hacker Tools 2019
- Pentest Tools Website
- Hacker Tools 2020
- Hacker Security Tools
- Hacker Tools 2019
- Hack Tools For Mac
- Pentest Tools For Ubuntu
- Hack Tools Mac
- Hacker Tools For Mac
- What Are Hacking Tools
- Hacker Tools
- Hacking Tools Hardware
- Pentest Tools Framework
- Hacking Tools
- Pentest Recon Tools
- Hack Tools For Pc
- Hacker Tools For Ios
- Hacking Apps
- Hacking Tools Pc
- Hacking Tools For Windows 7
- Hack Tools Online
- Pentest Tools Free
- Pentest Tools List
- Hackrf Tools
- Game Hacking
- Computer Hacker
- Hacking Tools Usb
- Hacking Tools Kit
- Beginner Hacker Tools
- Hackrf Tools
- Pentest Tools Framework
0 留言:
訂閱:
發佈留言 (Atom)