mirror of
https://github.com/RGBCube/serenity
synced 2025-10-28 22:52:35 +00:00
It was possible to craft a custom ELF executable that when symbolicated would cause the kernel to read from user-controlled addresses anywhere in memory. You could then fetch this memory via /proc/PID/stack We fix this by making ELFImage hand out StringView rather than raw const char* for symbol names. In case a symbol offset is outside the ELF image, you get a null StringView. :^) Test: Kernel/elf-symbolication-kernel-read-exploit.cpp |
||
|---|---|---|
| .. | ||
| Kernel | ||