CVE-2017-1000476
Description
ImageMagick 7.0.7-12 Q16 has a CPU exhaustion vulnerability in ReadDDSInfo (coders/dds.c) via a crafted DDS file, leading to denial of service.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ImageMagick 7.0.7-12 Q16 has a CPU exhaustion vulnerability in ReadDDSInfo (coders/dds.c) via a crafted DDS file, leading to denial of service.
Vulnerability
ImageMagick 7.0.7-12 Q16 contains a CPU exhaustion vulnerability in the ReadDDSInfo function within coders/dds.c. The issue manifests when processing a specially crafted DDS image file, causing the SeekBlob function to enter an infinite loop or consume excessive CPU resources. The affected version is ImageMagick 7.0.7-12 Q16; earlier versions may also be vulnerable as indicated by the upstream issue tracker [1][2].
Exploitation
An attacker can trigger this denial-of-service condition by providing a malformed DDS image file to an application or service using ImageMagick (e.g., convert command). No special privileges are required beyond the ability to supply the crafted file. User interaction is required (e.g., opening the file), making this a user-assisted exploitation scenario [1][2].
Impact
Successful exploitation results in a denial of service due to 100% CPU consumption, rendering the affected ImageMagick process unresponsive. There is no indication of information disclosure, file corruption, or remote code execution from this specific vulnerability; the impact is strictly availability [2].
Mitigation
The vulnerability is fixed in ImageMagick versions released after 7.0.7-12. For Ubuntu systems, a security update was published in USN-3681-1 (Ubuntu 18.04 LTS and other releases) that addresses this issue along with other vulnerabilities [1]. Users should update to the latest patched version of ImageMagick. If an immediate update is not possible, avoid processing untrusted DDS files as a workaround.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
15- Range: =7.0.7-12 Q16
- osv-coords14 versionspkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20Raspberry%20Pi%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP3
< 6.8.8.1-71.23.1+ 13 more
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.4.3.6-7.78.22.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.4.3.6-7.78.22.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.4.3.6-7.78.22.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.8.8.1-71.23.1
- (no CPE)range: < 6.8.8.1-71.23.1
Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"A large mipmap count in a DDS image causes an integer overflow when calculating the offset for SeekBlob, leading to excessive CPU consumption."
Attack vector
An attacker can trigger this vulnerability by providing a specially crafted DDS image file to the ImageMagick `convert` utility. The `ReadDDSInfo` function in `coders/dds.c` processes this image, and if the `mipmapcount` field is excessively large, it leads to a CPU exhaustion condition. This can be achieved by running the `convert` command with the malicious DDS file as input, for example, `convert SeekBlob-cpu-exhaustion /dev/null` [ref_id=1].
Affected code
The vulnerability resides in the `ReadDDSInfo` function within the `coders/dds.c` file. Specifically, the loop in `SkipDXTMipmaps` iterates based on `dds_info->mipmapcount`, and the calculation of `offset` using `(w+3)/4*((h+3)/4)*texel_size` can lead to an overflow when `mipmapcount` is excessively large. This large offset is then passed to `SeekBlob` in `MagickCore/blob.c` [ref_id=1].
What the fix does
The patch addresses the CPU exhaustion vulnerability by adding a check to ensure that the calculated offset in `SeekBlob` does not result in an excessively large value before performing the seek operation. This prevents the infinite loop or excessive seeking that was previously triggered by a large `mipmapcount` in DDS images, thereby mitigating the denial of service condition [ref_id=1].
Preconditions
- inputThe user must provide a specially crafted DDS image file with an excessively large mipmap count.
- configThe ImageMagick `convert` utility must be available and used to process the DDS file.
Reproduction
https://github.com/henices/pocs/raw/master/SeekBlob--cpu-exhaustion
Generated on Jun 3, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- usn.ubuntu.com/3681-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.securityfocus.com/bid/102428mitrevdb-entryx_refsource_BID
- github.com/ImageMagick/ImageMagick/issues/867mitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2018/01/msg00002.htmlmitremailing-listx_refsource_MLIST
- lists.debian.org/debian-lts-announce/2019/05/msg00015.htmlmitremailing-listx_refsource_MLIST
- lists.debian.org/debian-lts-announce/2020/09/msg00007.htmlmitremailing-listx_refsource_MLIST
News mentions
0No linked articles in our index yet.