Skip to content
Memory corruption Write-up Advanced

(CVE-2025-23103) Samsung Exynos NPU Driver Out-of-Bounds Write via Unbounded Loop Counter

A missing length check in the Samsung Exynos NPU driver allows out-of-bounds writes. A local attacker in the untrusted_app SELinux context could exploit this for local privilege escalation.

starlabs.sg

Published on starlabs.sg

The Samsung Galaxy S24+ features a Neural Processing Unit (NPU) integrated into either the Snapdragon 8 Gen 3 or Exynos 2400 chipset depending on the market. The NPU accelerates on-device AI workloads including camera processing, real-time translation, and generative photo editing.

The author, on starlabs.sg

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the driver fails to validate the length of a user-supplied buffer before copying data, leading to an out-of-bounds write.

Impact

A local attacker within the untrusted_app SELinux context could exploit this to achieve local privilege escalation.

What the attacker needed

Local access to the device; ability to run code in untrusted_app context

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A driver is software that lets the operating system talk to hardware. Here, the driver for a part of the phone's chip (the NPU, a processor for AI tasks) does not check how much data it is given before writing it into memory. That lets a malicious app write past the intended area, which can be used to take control of the phone at a higher privilege level.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.