# CVE-2023-40218: Integer overflow in n/a

> A crafted application can exploit an integer overflow in the Samsung Exynos NPU kernel driver to bypass error checks, potentially leading to privilege escalation or code execution.

- **Severity:** Low 2.0 (`CVSS:3.1/AC:L/AV:L/A:L/C:N/I:N/PR:H/S:U/UI:R`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 12 Sep 2023
- **Updated:** 26 Sep 2024
- **Also known as:** GHSA-rc82-xg8f-27pw

## What is CVE-2023-40218?

CVE-2023-40218 is a low-severity vulnerability in Samsung Exynos 1280 Firmware, published on 12 Sep 2023. 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

An issue was discovered in the NPU kernel driver in Samsung Exynos Mobile Processor 9820, 980, 2100, 2200, 1280, and 1380. An integer overflow can bypass detection of error cases via a crafted application.

Weakness: CWE-190 (Integer Overflow or Wraparound)

## Which versions are affected by CVE-2023-40218?

It affects 6 products.


Products: Samsung Exynos 1280 Firmware, Samsung Exynos 1380 Firmware, Samsung Exynos 2100 Firmware, Samsung Exynos 2200 Firmware, Samsung Exynos 980 Firmware, Samsung Exynos 9820 Firmware.

## How do I fix CVE-2023-40218?

No fix has been published for CVE-2023-40218 yet. Limit exposure of the affected software until one is available.

## Is CVE-2023-40218 being exploited?

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

## Other vulnerabilities in Samsung Exynos 1280 Firmware

- [CVE-2025-52908](https://insights.sbomify.com/CVE-2025-52908/): Memory corruption in n/a (critical 9.8)
- [CVE-2025-52909](https://insights.sbomify.com/CVE-2025-52909/): Memory corruption in n/a (critical 9.8)
- [CVE-2025-52910](https://insights.sbomify.com/CVE-2025-52910/): Use after free in n/a (critical 9.8)
- [CVE-2023-26076](https://insights.sbomify.com/CVE-2023-26076/): Memory corruption in n/a (high 7.6)
- [CVE-2025-62814](https://insights.sbomify.com/CVE-2025-62814/): Null dereference in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-40218 and fix it if it is affected.

What it is: CVE-2023-40218 is a low-severity vulnerability in Samsung Exynos 1280 Firmware, published on 12 Sep 2023. 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-2023-40218 in the wild and no public exploit code.

Affected product: Samsung Exynos 1280 Firmware. 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-2023-40218/ (Markdown: https://insights.sbomify.com/CVE-2023-40218/index.md)
```

## Sources

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

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