UBUNTU-CVE-2020-25664

Source
https://ubuntu.com/security/CVE-2020-25664
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25664.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2020-25664
Related
Published
2020-12-08T21:15:00Z
Modified
2024-11-20T12:25:39Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H CVSS Calculator
Summary
[none]
Details

In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to AcquireVirtualMemory() and memset() allows for an out-of-bounds write later when PopShortPixel() from MagickCore/quantum-private.h is called. The patch fixes the calls by adding 256 to rowbytes. An attacker who is able to supply a specially crafted image could affect availability with a low impact to data integrity. This flaw affects ImageMagick versions prior to 6.9.10-68 and 7.0.8-68.

References

Affected packages

Ubuntu:Pro:14.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8:6.7.7.10-6ubuntu3.13+esm11

Affected versions

8:6.*

8:6.7.7.10-5ubuntu3
8:6.7.7.10-5ubuntu4
8:6.7.7.10-6ubuntu1
8:6.7.7.10-6ubuntu2
8:6.7.7.10-6ubuntu3
8:6.7.7.10-6ubuntu3.1
8:6.7.7.10-6ubuntu3.2
8:6.7.7.10-6ubuntu3.3
8:6.7.7.10-6ubuntu3.4
8:6.7.7.10-6ubuntu3.5
8:6.7.7.10-6ubuntu3.6
8:6.7.7.10-6ubuntu3.7
8:6.7.7.10-6ubuntu3.8
8:6.7.7.10-6ubuntu3.9
8:6.7.7.10-6ubuntu3.11
8:6.7.7.10-6ubuntu3.12
8:6.7.7.10-6ubuntu3.13
8:6.7.7.10-6ubuntu3.13+esm1
8:6.7.7.10-6ubuntu3.13+esm2
8:6.7.7.10-6ubuntu3.13+esm3
8:6.7.7.10-6ubuntu3.13+esm4
8:6.7.7.10-6ubuntu3.13+esm5
8:6.7.7.10-6ubuntu3.13+esm6
8:6.7.7.10-6ubuntu3.13+esm7
8:6.7.7.10-6ubuntu3.13+esm8
8:6.7.7.10-6ubuntu3.13+esm9
8:6.7.7.10-6ubuntu3.13+esm10

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "imagemagick"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "imagemagick-common"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "imagemagick-dbg"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "imagemagick-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "imagemagick-doc"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagick++-dev"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagick++-dev-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagick++5"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagick++5-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickcore-dev"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickcore-dev-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickcore5"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickcore5-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickcore5-extra"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickcore5-extra-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickwand-dev"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickwand-dev-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickwand5"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "libmagickwand5-dbgsym"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "perlmagick"
        },
        {
            "binary_version": "8:6.7.7.10-6ubuntu3.13+esm11",
            "binary_name": "perlmagick-dbgsym"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8:6.8.9.9-7ubuntu5.16+esm2

Affected versions

8:6.*

8:6.8.9.9-5ubuntu2
8:6.8.9.9-6
8:6.8.9.9-6build1
8:6.8.9.9-7
8:6.8.9.9-7ubuntu1
8:6.8.9.9-7ubuntu2
8:6.8.9.9-7ubuntu3
8:6.8.9.9-7ubuntu4
8:6.8.9.9-7ubuntu5
8:6.8.9.9-7ubuntu5.1
8:6.8.9.9-7ubuntu5.2
8:6.8.9.9-7ubuntu5.3
8:6.8.9.9-7ubuntu5.4
8:6.8.9.9-7ubuntu5.5
8:6.8.9.9-7ubuntu5.6
8:6.8.9.9-7ubuntu5.7
8:6.8.9.9-7ubuntu5.8
8:6.8.9.9-7ubuntu5.9
8:6.8.9.9-7ubuntu5.11
8:6.8.9.9-7ubuntu5.12
8:6.8.9.9-7ubuntu5.13
8:6.8.9.9-7ubuntu5.14
8:6.8.9.9-7ubuntu5.15
8:6.8.9.9-7ubuntu5.16
8:6.8.9.9-7ubuntu5.16+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "imagemagick"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "imagemagick-6.q16"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "imagemagick-6.q16-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "imagemagick-common"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "imagemagick-dbg"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "imagemagick-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "imagemagick-doc"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libimage-magick-perl"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libimage-magick-q16-perl"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libimage-magick-q16-perl-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagick++-6-headers"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagick++-6.q16-5v5"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagick++-6.q16-5v5-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagick++-6.q16-dev"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagick++-6.q16-dev-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagick++-dev"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6-arch-config"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6-arch-config-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6-headers"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6.q16-2"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6.q16-2-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6.q16-2-extra"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6.q16-2-extra-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6.q16-dev"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-6.q16-dev-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickcore-dev"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickwand-6-headers"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickwand-6.q16-2"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickwand-6.q16-2-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickwand-6.q16-dev"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickwand-6.q16-dev-dbgsym"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "libmagickwand-dev"
        },
        {
            "binary_version": "8:6.8.9.9-7ubuntu5.16+esm2",
            "binary_name": "perlmagick"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

8:6.*

8:6.9.7.4+dfsg-16ubuntu2
8:6.9.7.4+dfsg-16ubuntu3
8:6.9.7.4+dfsg-16ubuntu4
8:6.9.7.4+dfsg-16ubuntu5
8:6.9.7.4+dfsg-16ubuntu6
8:6.9.7.4+dfsg-16ubuntu6.2
8:6.9.7.4+dfsg-16ubuntu6.3
8:6.9.7.4+dfsg-16ubuntu6.4
8:6.9.7.4+dfsg-16ubuntu6.7
8:6.9.7.4+dfsg-16ubuntu6.8
8:6.9.7.4+dfsg-16ubuntu6.9
8:6.9.7.4+dfsg-16ubuntu6.11
8:6.9.7.4+dfsg-16ubuntu6.12
8:6.9.7.4+dfsg-16ubuntu6.13
8:6.9.7.4+dfsg-16ubuntu6.14
8:6.9.7.4+dfsg-16ubuntu6.15
8:6.9.7.4+dfsg-16ubuntu6.15+esm1
8:6.9.7.4+dfsg-16ubuntu6.15+esm2
8:6.9.7.4+dfsg-16ubuntu6.15+esm3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

8:6.*

8:6.9.10.23+dfsg-2.1ubuntu3
8:6.9.10.23+dfsg-2.1ubuntu8
8:6.9.10.23+dfsg-2.1ubuntu9
8:6.9.10.23+dfsg-2.1ubuntu10
8:6.9.10.23+dfsg-2.1ubuntu11
8:6.9.10.23+dfsg-2.1ubuntu11.1
8:6.9.10.23+dfsg-2.1ubuntu11.2
8:6.9.10.23+dfsg-2.1ubuntu11.4
8:6.9.10.23+dfsg-2.1ubuntu11.5
8:6.9.10.23+dfsg-2.1ubuntu11.6
8:6.9.10.23+dfsg-2.1ubuntu11.7
8:6.9.10.23+dfsg-2.1ubuntu11.9
8:6.9.10.23+dfsg-2.1ubuntu11.10

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

8:6.*

8:6.9.11.60+dfsg-1ubuntu1
8:6.9.11.60+dfsg-1.3
8:6.9.11.60+dfsg-1.3build1
8:6.9.11.60+dfsg-1.3build2
8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1
8:6.9.11.60+dfsg-1.3ubuntu0.22.04.2
8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3
8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

8:6.*

8:6.9.12.98+dfsg1-5.2build2
8:6.9.13.12+dfsg1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

8:6.*

8:6.9.11.60+dfsg-1.6ubuntu1
8:6.9.12.98+dfsg1-5
8:6.9.12.98+dfsg1-5.2build1
8:6.9.12.98+dfsg1-5.2build2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}