ImageMagick vulnerable to Release of Invalid Pointer in BilateralBlur when memory allocation fails
ImageMagick
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Magick.NET-Q8-x64 NuGet |
|
|
| Magick.NET-Q8-arm64 NuGet |
|
|
| Magick.NET-Q8-x86 NuGet |
ImageMagick
| Product | Affected | Fixed in |
|---|---|---|
| Magick.NET-Q8-x64 NuGet |
|
|
| Magick.NET-Q8-arm64 NuGet |
|
|
| Magick.NET-Q8-x86 NuGet |
< 14.10.2
|
| Magick.NET-Q8-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q8-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q16-x64 NuGet |
|
|
| Magick.NET-Q16-arm64 NuGet |
|
|
| Magick.NET-Q16-x86 NuGet |
|
|
| Magick.NET-Q16-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q16-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q16-OpenMP-x86 NuGet |
|
|
| Magick.NET-Q16-HDRI-x64 NuGet |
|
|
| Magick.NET-Q16-HDRI-arm64 NuGet |
|
|
| Magick.NET-Q16-HDRI-x86 NuGet |
|
|
| Magick.NET-Q16-HDRI-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q16-HDRI-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q8-AnyCPU NuGet |
|
|
| Magick.NET-Q16-AnyCPU NuGet |
|
|
| Magick.NET-Q16-HDRI-AnyCPU NuGet |
|
|
ImageMagick is free and open-source software used for editing and manipulating digital images. The BilateralBlurImage method will allocate a set of double buffers inside AcquireBilateralTLS. But, in versions prior to 7.1.2-13, the last element in the set is not properly initialized. This will result in a release of an invalid pointer inside DestroyBilateralTLS when the memory allocation fails. Version 7.1.2-13 contains a patch for the issue.
From the CVE record · GitHub_M
In ImageMagick before 7.1.2-13, BilateralBlurImage leaves a buffer element uninitialized. If memory allocation fails, cleanup can release an invalid pointer. The input does not specify whether an attacker can trigger this remotely or whether authentication or user interaction is required.
Teams running ImageMagick before 7.1.2-13 or the listed NuGet Magick.NET packages before 14.10.2 should check their deployments.