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 various overflows in OpCode and readBytes #89

Merged
merged 1 commit into from
Oct 6, 2017
Merged

Conversation

hlef
Copy link
Contributor

@hlef hlef commented Oct 6, 2017

  • OpCode: Add a check to avoid reading the stack when n < 1.
    In this case, print a debug warning and return error code -998

  • readBytes: When size < 0, set it to zero (don't read anything) and print a warning

This commit fixes CVE-2017-117{28,29,30} (#82, #81 and #79).

@hlef hlef mentioned this pull request Oct 6, 2017
@hlef
Copy link
Contributor Author

hlef commented Oct 6, 2017

Applying this patch will also fix CVE-2017-11731 (#84) 👍

@strk
Copy link
Member

strk commented Oct 6, 2017

Would you mind including "Fixes #xx" "Fixes #yy" etc. in the commit log so the relevant tickets are automatically closed on merge ? Also please add an entry in the NEWS file so there's nothing else for me to do other than merging :)

Thanks!

* OpCode: Add a check to avoid reading the stack when n < 1

    In this case, print a debug warning and return error code -998

* readBytes: When size < 0, set it to zero (don't read anything)

This commit fixes CVE-2017-11728 (Fixes libming#82), CVE-2017-11729 (Fixes libming#79),
CVE-2017-11730 (Fixes libming#81) and CVE-2017-11731 (Fixes libming#84).
@hlef
Copy link
Contributor Author

hlef commented Oct 6, 2017

Would you mind including "Fixes #xx" "Fixes #yy" etc. in the commit log so the relevant tickets are automatically closed on merge ? Also please add an entry in the NEWS file so there's nothing else for me to do other than merging :)

Commit updated :)

@strk strk merged commit 2027b24 into libming:master Oct 6, 2017
@strk
Copy link
Member

strk commented Oct 6, 2017

Thanks !

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.

None yet

2 participants