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

Fix buffer overrun in "dotnet" module. #1167

Merged
merged 1 commit into from
Nov 17, 2019
Merged

Fix buffer overrun in "dotnet" module. #1167

merged 1 commit into from
Nov 17, 2019

Conversation

plusvic
Copy link
Member

@plusvic plusvic commented Nov 15, 2019

The root cause of the buffer overrun is that num_rows is read directly from the size and can have an arbitrarily large value. There are some loops that increment a pointer on each iteration and try to read a structure from that pointer. As num_rows is too high the pointer is incremented too many times and goes beyond the buffer's end.

Credits to OSS-Fuzz.

@plusvic plusvic requested a review from wxsBSD November 15, 2019 11:46
@plusvic plusvic merged commit 595c612 into master Nov 17, 2019
@plusvic plusvic deleted the fix-segfault branch November 17, 2019 12:48
tarterp pushed a commit to mandiant/yara that referenced this pull request Mar 31, 2022
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 this pull request may close these issues.

2 participants