-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Division by zero in GenerateDifferentialNoise() in MagickCore/gem.c #3077
Comments
Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow. |
This issue was assigned CVE-2021-20176 |
Hi @urban-warrior, do you think the following lines are relevant for this vulnerability? ImageMagick:
|
Yes. We'll add a patch. |
We maintain two different releases of ImageMagick. IMv6 & IMv7. |
Yes, but these are both for IMv7. IMv6 is in a different repo, am I wrong? |
Fixes the following security issue: CVE-2021-20176: A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c. This flaw allows an attacker who submits a crafted file that is processed by ImageMagick to trigger undefined behavior through a division by zero. The highest threat from this vulnerability is to system availability. For more details, see the bugtracker: ImageMagick/ImageMagick#3077 - bump version to 7.0.10-62 - update license file hash (copyright year update) Signed-off-by: Peter Seiderer <ps.report@gmx.net> [Peter: mention security fix] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Fixes the following security issue: CVE-2021-20176: A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c. This flaw allows an attacker who submits a crafted file that is processed by ImageMagick to trigger undefined behavior through a division by zero. The highest threat from this vulnerability is to system availability. For more details, see the bugtracker: ImageMagick/ImageMagick#3077 - bump version to 7.0.10-62 - update license file hash (copyright year update) Signed-off-by: Peter Seiderer <ps.report@gmx.net> [Peter: mention security fix] Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit a11b6be) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Fixes the following security issue: CVE-2021-20176: A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c. This flaw allows an attacker who submits a crafted file that is processed by ImageMagick to trigger undefined behavior through a division by zero. The highest threat from this vulnerability is to system availability. For more details, see the bugtracker: ImageMagick/ImageMagick#3077 - bump version to 7.0.10-62 - update license file hash (copyright year update) Signed-off-by: Peter Seiderer <ps.report@gmx.net> [Peter: mention security fix] Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit a11b6be) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
When
attenuate
was set to zero,SigmaPoisson
would be zero too. So a crafted file may trigger undefined behavior in the form of division by zero. Maybe there need a check onSigmaPoisson
before line 1590?ImageMagick/MagickCore/gem.c
Lines 1576 to 1592 in 0d20727
The text was updated successfully, but these errors were encountered: