Selamat Datang

Minggu, 28 Januari 2024

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.

More info
  1. Computer Hacker
  2. Hacking Tools Usb
  3. Hacking Tools Kit
  4. Hacking Tools Software
  5. Hacking Tools For Mac
  6. Hacking Tools Windows
  7. Install Pentest Tools Ubuntu
  8. Best Pentesting Tools 2018
  9. Hack Tools For Windows
  10. Pentest Tools Free
  11. Hacking Tools Download
  12. How To Make Hacking Tools
  13. Hack Apps
  14. Underground Hacker Sites
  15. Install Pentest Tools Ubuntu
  16. Hack Tools Online
  17. Pentest Tools Kali Linux
  18. Hacking Tools For Games
  19. Beginner Hacker Tools
  20. Pentest Tools Url Fuzzer
  21. Pentest Tools Kali Linux
  22. Hacks And Tools
  23. Android Hack Tools Github
  24. Hacking Apps
  25. Hacker Tool Kit
  26. Termux Hacking Tools 2019
  27. Hacking App
  28. Pentest Tools
  29. Tools 4 Hack
  30. Pentest Tools For Mac
  31. Hacker Tools Software
  32. What Is Hacking Tools
  33. Pentest Tools Download
  34. Hack Website Online Tool
  35. Pentest Tools Download
  36. Hacking Tools Software
  37. Hacker Tools Online
  38. Hacking Tools Online
  39. Hacking Tools For Kali Linux
  40. Hack Tools For Ubuntu
  41. Hacking Tools Windows 10
  42. Nsa Hacker Tools
  43. Hack Tools Download
  44. Beginner Hacker Tools
  45. Best Hacking Tools 2019
  46. Hack Tools Github
  47. Hacking Tools Kit
  48. Underground Hacker Sites
  49. Tools Used For Hacking
  50. Hacker Tools 2020
  51. Wifi Hacker Tools For Windows
  52. Hackrf Tools
  53. Hack Tools For Games
  54. Hack Rom Tools
  55. New Hacker Tools
  56. Pentest Tools Review
  57. Hacker Tools Windows
  58. Hacking Apps
  59. Pentest Tools For Windows
  60. Pentest Tools Apk
  61. Hack Tools For Games
  62. Best Pentesting Tools 2018
  63. Top Pentest Tools
  64. Hacking Tools Usb
  65. Hacking Tools For Games
  66. Pentest Tools Free
  67. Tools 4 Hack
  68. Pentest Tools Apk
  69. Computer Hacker
  70. Pentest Tools List
  71. Best Hacking Tools 2019
  72. Pentest Tools For Ubuntu
  73. Best Pentesting Tools 2018
  74. Hack Tool Apk No Root
  75. Hacker Tools 2020
  76. Top Pentest Tools
  77. Hacker Tools
  78. Hack Tool Apk No Root
  79. Nsa Hack Tools
  80. Hacker Tools 2019
  81. Hacking Tools Download
  82. Hacking Tools For Beginners
  83. Tools For Hacker
  84. Hacking App
  85. Hack Tools For Mac
  86. Hacking Tools Download
  87. Hacking Tools Name
  88. Pentest Tools Linux
  89. Hacker Techniques Tools And Incident Handling
  90. Hacking Tools Download
  91. Hacking Tools For Windows 7
  92. Hacker Tools For Pc
  93. Pentest Tools Bluekeep
  94. Physical Pentest Tools
  95. Hacker Tools 2019
  96. Blackhat Hacker Tools
  97. Hacking Apps
  98. Hacker Tools Github
  99. Bluetooth Hacking Tools Kali
  100. What Is Hacking Tools
  101. Hacking Tools For Windows Free Download
  102. How To Hack

Tidak ada komentar:

Posting Komentar