Skip to content
Heist/ feed
Back to feed
High

dmg2img — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-32614

A flaw was found in dmg2img through 20170502. fill_mishblk() does not check the length of the read buffer, and copy 0xCC bytes from it. The length of the buffer is controlled by an attacker. By providing a length smaller than 0xCC, memcpy reaches out of the malloc'ed bound. This possibly leads to memory layout information leaking in the data. This might be used in a chain of vulnerability in order to reach code execution.

Products
dmg2img
Affected versions
1.6.5-1, 1.6.5-1.1, 1.6.7+git20201227.a3e4134-0.1, 1.6.7+git20201227.a3e4134-0.1build1, 1.6.7+git20201227.a3e4134-0.1build2, 1.6.7-1, 1.6.7-1build1, 1.6.7-1build2, 1.6.7-1build3, 1.6.7-1build4
Fixed versions
Not specified
CVEs
CVE-2021-32614
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:34 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-32614

core-osv · Original source

Published 26 May 2021, 22:15 UTC

A flaw was found in dmg2img through 20170502. fill_mishblk() does not check the length of the read buffer, and copy 0xCC bytes from it. The length of the buffer is controlled by an attacker. By providing a length smaller than 0xCC, memcpy reaches out of the malloc'ed bound. This possibly leads to memory layout information leaking in the data. This might be used in a chain of vulnerability in order to reach code execution.

osv:UBUNTU-CVE-2021-32614

dmg2img

Fixed versions: Not specified

dmg2img

Fixed versions: Not specified

dmg2img

Fixed versions: Not specified

dmg2img

Fixed versions: Not specified

dmg2img

Fixed versions: Not specified

dmg2img

Fixed versions: Not specified

dmg2img

Fixed versions: Not specified

dmg2img

Fixed versions: Not specified

Complete source record
{
  "id": "7d43f1f5eaae3659c94aa662b5e8db1394d1aec4d3ade3b499a66c4db19fc0a0",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-32614",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-32614",
    "summary": "A flaw was found in dmg2img through 20170502. fill_mishblk() does not check the length of the read buffer, and copy 0xCC bytes from it. The length of the buffer is controlled by an attacker. By providing a length smaller than 0xCC, memcpy reaches out of the malloc'ed bound. This possibly leads to memory layout information leaking in the data. This might be used in a chain of vulnerability in order to reach code execution.",
    "evidence": "osv:UBUNTU-CVE-2021-32614",
    "products": [
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.5-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.5-1.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.6.7-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.6.7-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.7-1build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.7-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.6.7-1build2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.7-1build2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.6.7-1build3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.6.7-1build4",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.7-1build4",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.6.7+git20201227.a3e4134-0.1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.7+git20201227.a3e4134-0.1build1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.6.7+git20201227.a3e4134-0.1build2",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dmg2img",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.7+git20201227.a3e4134-0.1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.6.7+git20201227.a3e4134-0.1build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2021-32614",
      "aliases": [
        "UBUNTU-CVE-2021-32614"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.6.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.6.5-1.1",
            "1.6.7-1",
            "1.6.7-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.7-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.6.7-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.7-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.6.7-1build1",
            "1.6.7-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.7-1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.6.7-1build2",
            "1.6.7-1build3",
            "1.6.7-1build4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.7-1build4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.6.7-1build4",
            "1.6.7+git20201227.a3e4134-0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.7+git20201227.a3e4134-0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.6.7+git20201227.a3e4134-0.1build1",
            "1.6.7+git20201227.a3e4134-0.1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.7+git20201227.a3e4134-0.1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "dmg2img",
            "purl": "pkg:deb/ubuntu/dmg2img?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.6.7+git20201227.a3e4134-0.1",
            "1.6.7+git20201227.a3e4134-0.1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "dmg2img",
                "binary_version": "1.6.7+git20201227.a3e4134-0.1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:46.657634711Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-32614"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-32614",
        "https://www.cve.org/CVERecord?id=CVE-2021-32614"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-32614",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354057,
  "published_at": "2021-05-26T22:15:00+00:00"
}