-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
V2 decoder overflow RCE fix #3353
Conversation
… remote code execution (issue #3351) Solution: refactor bounds check arithmetic such that no overflow shall occur Signed-off-by: Guido Vranken <guidovranken@gmail.com>
Solution: added relicense agreement Signed-off-by: Guido Vranken <guidovranken@gmail.com>
Per this rule in the spec
the following ought to be legal pointer arithmetic:
because
To guarantee this in all circumstances, we might want to add a Furthermore, this assumes |
Thanks for the fix! Unfortunately, this fails to compile with some builds, e.g. here: https://travis-ci.org/zeromq/libzmq/jobs/477075295#L1215 |
Fixes #3351 |
…ned expressions Solution: Cast the signed expression (which is always positive) to unsigned Signed-off-by: Guido Vranken <guidovranken@gmail.com>
@guidovranken thank you very much for finding the bug and sending the fix. There's a formatting error but I'll take care of that, as you've done enough already. I'll try and do a new release soon-ish, as soon as I can do the validation and changelog. |
Oh, I just pushed the fix for formatting before I saw your message. |
No description provided.