-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel: Buffer overflow in dump_backtrace_impl #371
Comments
RyanGrieb
pushed a commit
to RyanGrieb/serenity
that referenced
this issue
Jul 28, 2019
…mpl (SerenityOS#372) This adds a bounds check to the loop that writes to the buffer 'recognized_symbols'. This prevents buffer overflows in the case when a programs backtrace is particularly large. Fixes SerenityOS#371.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's buffer overflow in dump_backtrace_impl. In line 99 of KSyms.cpp we write to recognized_symbols without checking whether recognized_symbol_count is within bounds.
This could likely cause issues when dumping a backtrace for a program that overflowed the stack.
The text was updated successfully, but these errors were encountered: