# CVE-2019-9210: Integer overflow in n/a

> An integer overflow in AdvanceCOMP's PNG compression allows attackers to trigger memory corruption via crafted files, potentially leading to code execution or crashes.

- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 27 Feb 2019
- **Updated:** 4 Aug 2024
- **Also known as:** AZL-6303, AZL-7167, CLEANSTART-2023-VW60139, DEBIAN-CVE-2019-9210, GHSA-h34m-m7hc-cp2h, MGASA-2019-0128, RHSA-2020:1037, UBUNTU-CVE-2019-9210, USN-3936-1

## What is CVE-2019-9210?

CVE-2019-9210 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 27 Feb 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

In AdvanceCOMP 2.1, png_compress in pngex.cc in advpng has an integer overflow upon encountering an invalid PNG size, which results in an attempted memcpy to write into a buffer that is too small. (There is also a heap-based buffer over-read.)

Weakness: CWE-190 (Integer Overflow or Wraparound), CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2019-9210?

It affects 4 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `advancecomp` | Red Hat:enterprise_linux:7::server | All versions | 0:1.15-22.el7 |
| `advancecomp-debuginfo` | Red Hat:enterprise_linux:7::server | All versions | 0:1.15-22.el7 |
| `advancecomp` | Red Hat:enterprise_linux:7::workstation | All versions | 0:1.15-22.el7 |
| `advancecomp-debuginfo` | Red Hat:enterprise_linux:7::workstation | All versions | 0:1.15-22.el7 |

Products: Advancemame Advancecomp, Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora.

## How do I fix CVE-2019-9210?

Apply the vendor's patch.

## Is CVE-2019-9210 being exploited?

There is no known exploitation of CVE-2019-9210 in the wild and no public exploit code.

## Other vulnerabilities in Canonical Ubuntu Linux

- [CVE-2019-8379](https://insights.sbomify.com/CVE-2019-8379/): Null dereference in n/a (high 7.8)
- [CVE-2019-8383](https://insights.sbomify.com/CVE-2019-8383/): Memory corruption in n/a (high 7.8)
- [CVE-2022-35014](https://insights.sbomify.com/CVE-2022-35014/): Null dereference in n/a (medium 5.5)
- [CVE-2022-35015](https://insights.sbomify.com/CVE-2022-35015/): Memory corruption in n/a (medium 5.5)
- [CVE-2022-35016](https://insights.sbomify.com/CVE-2022-35016/): Memory corruption in n/a (medium 5.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-9210 and fix it if it is affected.

What it is: CVE-2019-9210 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 27 Feb 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2019-9210 in the wild and no public exploit code.

Affected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2019-9210/ (Markdown: https://insights.sbomify.com/CVE-2019-9210/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2019-9210
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2019-9210
- OSV: https://osv.dev/vulnerability/CVE-2019-9210

---
From sbomify Insights: https://insights.sbomify.com/CVE-2019-9210/
Summaries are generated and may contain mistakes; the official description above is the record.
