-
Notifications
You must be signed in to change notification settings - Fork 101
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
[BUG] Reachable assertion in inttobits, jas_image.c #338
Comments
It seems like this issue got assigned CVE-2022-40755. |
I only tested with the master commit so I'm not sure if it can occur in the previous release. I tried with previous release and the poc cannot triggered the expected behavior, but it doesn't mean previous release is not vulnerable. I could try to fuzz previous release to see if previous releases are affected but fixing it directly might be the simplest solution |
sure. I was just curious about the CVE state. @mdadams we should also include this in 3.0.7. |
Ok, then I'll start testing the latest release. I'll let you know if we got the poc. |
I tried the latest release these days and didn't find it. According to my experience this assertion is not reachable (or at least not easy to reach) in the latest release. Considering I've fuzzed it for about 3 days without any finding and it takes only 12h to find it in the latest commit, I would say that only master is vulnerable. |
@kdsjZh thanks for checking this. |
@mdadams can you release a new version with this fix? |
The CI testing is failing for Ubuntu with Clang. This is under invesitgation at the moment. It would not be wise to make a new release until reason for this failure has been isolated because if this is not a benign problem it will potentially impact many users. |
Hmm I see:
|
summary
Hello, I was testing my fuzzer and found a reachable assertion in imginfo. An assertion in function inttobits can be reached when parsing a crafted jp2 file, when running
./imginfo -f $POC
, as shown in the attachmentEnvironment
Step to reproduce
output
POC
poc0.zip
Credit
Han Zheng (NCNIPC of China, Hexhive)
Yin Li, Xiaotong Jiao (NCNIPC of China)
The text was updated successfully, but these errors were encountered: