-
Notifications
You must be signed in to change notification settings - Fork 38
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
multiple crashes from fuzzing #92
Comments
Hello. Crashes 1 and 2 will not be considered as they are not an issue with bzip3. |
All of the issues are as of now fixed on the main branch. |
I see two commits for 3 issues, can you clarify what commit fixes what issue? That would certainly help packagers. |
Thanks for the info. I think I discovered another issue in v1.2.2 that is not fixed in master. Can you wait a bit until I file a new ticket here? |
Yeah, of course. You can open a new ticket or just state the issue here. |
I understand your concern but I don't agree at all with you. From my understanding, you are not using an upstream version of I realized that issue n°1 is a pure duplicate of #59 while issue n°2 can be a completely different issue. Do you have a plan to fix those bugs? I'm wondering if with some magic in libbz3 is possible to deny to reach these bugs in libsais.h |
My fork of I will not fix the rest of issues in |
For the record, aae16d1 fixes the issue for me. |
Based on the statement here IlyaGrebnov/libsais#13 (comment) it looks like they are considered issues in bzip3, can you clarify if bfa5bf8 is the fix for both or not? |
Yes. Both of them no longer crash. |
Processing 1.crashes.bz3 by bzip3-1.3.0 still reads from an uninitialized memory:
|
This is not dangerous (read of memory that is one byte past the input buffer, which is larger than the input size anyway; on the next loop iteration bounds are checked properly and iteration is aborted), however, I have patched it on the main branch anyway. |
Thanks for the quick fix and the explanation. I confirm it makes valgrind happy again. |
FYI, multiple CVEs were assigned for the issues raised here:
(I'm not the person who assigned these, I just noticed them while triaging new CVEs.) |
Hello,
Here are my findings about v1.2.2.
You can reproduce via
bzip3 -Bcd $FILE
I didn't make further analisys, so I don't know if there are issues, with the same root cause. Please specify that so we will make as little confusion as possible in the CVE request.
Full log: 11.crashes.bz3.log.txt
Testcase: 11.crashes.bz3
Full log: 132.crashes.bz3.log.txt
Testcase: 132.crashes.bz3
Full log: 1.crashes.bz3.log.txt
Testcase: 1.crashes.bz3
Full log: 233.crashes.bz3.log.txt
Testcase: 233.crashes.bz3
Full log: 387.crashes.bz3.log.txt
Testcase: 387.crashes.bz3
Testcases/logs:
bzip3.zip
The text was updated successfully, but these errors were encountered: