{
  "document": {
    "aggregate_severity": {
      "text": "Important"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "TuxCare License Agreement",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Cloud Linux Inc. and provide a link to the original.",
        "title": "Terms of Use"
      },
      {
        "category": "details",
        "text": "* SECURITY UPDATE: unhandled memory allocation error in gdImageGd2Ptr\n     - debian/patches/CVE-2021-40145.patch: check for non-zero return\n       code from _gdImageGd2\n     - CVE-2021-40145\n   * SECURITY UPDATE: unhandled value returned from gdPutBuf\n     - debian/patches/CVE-2021-40812.patch: handle possible gdPutBuf\n       error in _gdImageBmpCtx and _gdImageWebpCtx\n       CVE-2021-40812\n   * SECURITY UPDATE: unhandled value returned from gdGetBuf\n     - debian/patches/CVE-2021-38115.patch: handle possible gdGetBuf\n       error in read_header_tga\n       CVE-2021-38115\n   * SECURITY UPDATE: handle possible heap buffer overread\n     - debian/patches/CVE-2017-6363.patch: make sure transparent\n       index is within bounds of the palette\n       CVE-2017-6363",
        "title": "Details"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://tuxcare.com/contact/",
      "name": "TuxCare",
      "namespace": "https://tuxcare.com/"
    },
    "references": [
      {
        "category": "self",
        "summary": "https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219",
        "url": "https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219"
      },
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.tuxcare.com/csaf/v2/els_os/ubuntu16.04els/advisories/2021/clsa-2021_1635459219.json"
      }
    ],
    "tracking": {
      "current_release_date": "2026-11-28T23:57:33Z",
      "generator": {
        "date": "2026-11-28T23:57:33Z",
        "engine": {
          "name": "pyCSAF"
        }
      },
      "id": "CLSA-2021:1635459219",
      "initial_release_date": "2021-10-28T00:00:00Z",
      "revision_history": [
        {
          "date": "2021-10-28T00:00:00Z",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-11-28T23:57:33Z",
          "number": "2",
          "summary": "Official Publication"
        }
      ],
      "status": "final",
      "version": "2"
    },
    "title": "Fix CVE(s): CVE-2021-40812, CVE-2021-40145, CVE-2021-38115, CVE-2017-6363"
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Ubuntu 16.04",
                "product": {
                  "name": "Ubuntu 16.04",
                  "product_id": "Ubuntu-16",
                  "product_identification_helper": {
                    "cpe": "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Ubuntu"
          }
        ],
        "category": "vendor",
        "name": "Canonical Ltd."
      },
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
                "product": {
                  "name": "libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
                  "product_id": "libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libgd-dev@2.1.1-4ubuntu0.16.04.13?arch=amd64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64",
                "product": {
                  "name": "libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64",
                  "product_id": "libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libgd3@2.1.1-4ubuntu0.16.04.13?arch=amd64"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
                "product": {
                  "name": "libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
                  "product_id": "libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
                  "product_identification_helper": {
                    "purl": "pkg:deb/cloudlinux/libgd-tools@2.1.1-4ubuntu0.16.04.13?arch=amd64"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "amd64"
          }
        ],
        "category": "vendor",
        "name": "CloudLinux"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64 as a component of Ubuntu 16.04",
          "product_id": "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64"
        },
        "product_reference": "libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
        "relates_to_product_reference": "Ubuntu-16"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64 as a component of Ubuntu 16.04",
          "product_id": "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
        },
        "product_reference": "libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64",
        "relates_to_product_reference": "Ubuntu-16"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64 as a component of Ubuntu 16.04",
          "product_id": "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64"
        },
        "product_reference": "libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
        "relates_to_product_reference": "Ubuntu-16"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2021-38115",
      "cwe": {
        "id": "CWE-125",
        "name": "Out-of-bounds Read"
      },
      "notes": [
        {
          "category": "description",
          "text": "read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.",
          "title": "Vulnerability description"
        },
        {
          "category": "other",
          "text": "NIST",
          "title": "Score source"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2021-38115"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/issues/697",
          "url": "https://github.com/libgd/libgd/issues/697"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/pull/711/commits/8b111b2b4a4842179be66db68d84dda91a246032",
          "url": "https://github.com/libgd/libgd/pull/711/commits/8b111b2b4a4842179be66db68d84dda91a246032"
        },
        {
          "category": "external",
          "summary": "https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html",
          "url": "https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html"
        }
      ],
      "release_date": "2021-08-04T21:15:00Z",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2021-10-28T00:00:00Z",
          "details": "Details on how to apply the fix are available at: https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219",
          "product_ids": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ],
          "url": "https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219"
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate"
        }
      ]
    },
    {
      "cve": "CVE-2021-40812",
      "cwe": {
        "id": "CWE-125",
        "name": "Out-of-bounds Read"
      },
      "notes": [
        {
          "category": "description",
          "text": "The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.",
          "title": "Vulnerability description"
        },
        {
          "category": "other",
          "text": "NIST",
          "title": "Score source"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2021-40812"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9",
          "url": "https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/issues/750#issuecomment-914872385",
          "url": "https://github.com/libgd/libgd/issues/750#issuecomment-914872385"
        },
        {
          "category": "external",
          "summary": "https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html",
          "url": "https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html"
        }
      ],
      "release_date": "2021-09-08T21:15:00Z",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2021-10-28T00:00:00Z",
          "details": "Details on how to apply the fix are available at: https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219",
          "product_ids": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ],
          "url": "https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219"
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate"
        }
      ]
    },
    {
      "cve": "CVE-2021-40145",
      "cwe": {
        "id": "CWE-415",
        "name": "Double Free"
      },
      "notes": [
        {
          "category": "description",
          "text": "gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free. NOTE: the vendor's position is \"The GD2 image format is a proprietary image format of libgd. It has to be regarded as being obsolete, and should only be used for development and testing purposes.",
          "title": "Vulnerability description"
        },
        {
          "category": "other",
          "text": "NIST",
          "title": "Score source"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2021-40145"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af",
          "url": "https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/issues/700",
          "url": "https://github.com/libgd/libgd/issues/700"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/pull/713",
          "url": "https://github.com/libgd/libgd/pull/713"
        }
      ],
      "release_date": "2021-08-26T01:15:00Z",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2021-10-28T00:00:00Z",
          "details": "Details on how to apply the fix are available at: https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219",
          "product_ids": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ],
          "url": "https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219"
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Important"
        }
      ]
    },
    {
      "cve": "CVE-2017-6363",
      "cwe": {
        "id": "CWE-125",
        "name": "Out-of-bounds Read"
      },
      "notes": [
        {
          "category": "description",
          "text": "In the GD Graphics Library (aka LibGD) through 2.2.5, there is a heap-based buffer over-read in tiffWriter in gd_tiff.c. NOTE: the vendor says \"In my opinion this issue should not have a CVE, since the GD and GD2 formats are documented to be 'obsolete, and should only be used for development and testing purposes.'",
          "title": "Vulnerability description"
        },
        {
          "category": "other",
          "text": "NIST",
          "title": "Score source"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
          "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2017-6363"
        },
        {
          "category": "external",
          "summary": "https://github.com/libgd/libgd/issues/383",
          "url": "https://github.com/libgd/libgd/issues/383"
        }
      ],
      "release_date": "2020-02-27T05:15:00Z",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2021-10-28T00:00:00Z",
          "details": "Details on how to apply the fix are available at: https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219",
          "product_ids": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ],
          "url": "https://cve.tuxcare.com/els/releases/CLSA-2021:1635459219"
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "Ubuntu-16:libgd-dev-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd-tools-0:2.1.1-4ubuntu0.16.04.13.amd64",
            "Ubuntu-16:libgd3-0:2.1.1-4ubuntu0.16.04.13.amd64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Important"
        }
      ]
    }
  ]
}