Skip to content
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

Closed
DrewStratford opened this issue Jul 28, 2019 · 0 comments · Fixed by #372
Closed

Kernel: Buffer overflow in dump_backtrace_impl #371

DrewStratford opened this issue Jul 28, 2019 · 0 comments · Fixed by #372

Comments

@DrewStratford
Copy link
Contributor

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.

awesomekling pushed a commit that referenced this issue Jul 28, 2019
…mpl (#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 #371.
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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant