# CVE-2025-40225: drm/panthor: Fix kernel panic on partial unmap of a GPU VA region

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.34% (percentile 19, 2026-11-26)
- **Published:** 2025-12-04T15:31:17.057Z
- **Modified:** 2026-10-19T19:10:00.130Z

## Who should check

- Anyone running Linux \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< efe6dced3512066ebee2cf7c4c38d1c99625814e; \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< e9c19d19dd7e08db89cead5b0337c18590dc6645; \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f
- Anyone running Linux 6.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/panthor: Fix kernel panic on partial unmap of a GPU VA region

This commit address a kernel panic issue that can happen if Userspace
tries to partially unmap a GPU virtual region (aka drm\_gpuva).
The VM\_BIND interface allows partial unmapping of a BO.

Panthor driver pre-allocates memory for the new drm\_gpuva structures
that would be needed for the map/unmap operation, done using drm\_gpuvm
layer. It expected that only one new drm\_gpuva would be needed on umap
but a partial unmap can require 2 new drm\_gpuva and that's why it
ended up doing a NULL pointer dereference causing a kernel panic.

Following dump was seen when partial unmap was exercised.
 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000078
 Mem abort info:
   ESR = 0x0000000096000046
   EC = 0x25: DABT (current EL), IL = 32 bits
   SET = 0, FnV = 0
   EA = 0, S1PTW = 0
   FSC = 0x06: level 2 translation fault
 Data abort info:
   ISV = 0, ISS = 0x00000046, ISS2 = 0x00000000
   CM = 0, WnR = 1, TnD = 0, TagAccess = 0
   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
 user pgtable: 4k pages, 48-bit VAs, pgdp=000000088a863000
 \[000000000000078\] pgd=080000088a842003, p4d=080000088a842003, pud=0800000884bf5003, pmd=0000000000000000
 Internal error: Oops: 0000000096000046 \[\#1\] PREEMPT SMP
 \<snip\>
 pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
 pc : panthor\_gpuva\_sm\_step\_remap+0xe4/0x330 \[panthor\]
 lr : panthor\_gpuva\_sm\_step\_remap+0x6c/0x330 \[panthor\]
 sp : ffff800085d43970
 x29: ffff800085d43970 x28: ffff00080363e440 x27: ffff0008090c6000
 x26: 0000000000000030 x25: ffff800085d439f8 x24: ffff00080d402000
 x23: ffff800085d43b60 x22: ffff800085d439e0 x21: ffff00080abdb180
 x20: 0000000000000000 x19: 0000000000000000 x18: 0000000000000010
 x17: 6e656c202c303030 x16: 3666666666646466 x15: 393d61766f69202c
 x14: 312d3d7361203a70 x13: 303030323d6e656c x12: ffff80008324bf58
 x11: 0000000000000003 x10: 0000000000000002 x9 : ffff8000801a6a9c
 x8 : ffff00080360b300 x7 : 0000000000000000 x6 : 000000088aa35fc7
 x5 : fff1000080000000 x4 : ffff8000842ddd30 x3 : 0000000000000001
 x2 : 0000000100000000 x1 : 0000000000000001 x0 : 0000000000000078
 Call trace:
  panthor\_gpuva\_sm\_step\_remap+0xe4/0x330 \[panthor\]
  op\_remap\_cb.isra.22+0x50/0x80
  \_\_drm\_gpuvm\_sm\_unmap+0x10c/0x1c8
  drm\_gpuvm\_sm\_unmap+0x40/0x60
  panthor\_vm\_exec\_op+0xb4/0x3d0 \[panthor\]
  panthor\_vm\_bind\_exec\_sync\_op+0x154/0x278 \[panthor\]
  panthor\_ioctl\_vm\_bind+0x160/0x4a0 \[panthor\]
  drm\_ioctl\_kernel+0xbc/0x138
  drm\_ioctl+0x240/0x500
  \_\_arm64\_sys\_ioctl+0xb0/0xf8
  invoke\_syscall+0x4c/0x110
  el0\_svc\_common.constprop.1+0x98/0xf8
  do\_el0\_svc+0x24/0x38
  el0\_svc+0x40/0xf8
  el0t\_64\_sync\_handler+0xa0/0xc8
  el0t\_64\_sync+0x174/0x178

## Affected and fixed versions

- Linux: \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< efe6dced3512066ebee2cf7c4c38d1c99625814e; \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< e9c19d19dd7e08db89cead5b0337c18590dc6645; \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40225. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40225.md
Affected: Linux >= 647810ec247641eb5aec8caef818919a4518a0b1, < efe6dced3512066ebee2cf7c4c38d1c99625814e; >= 647810ec247641eb5aec8caef818919a4518a0b1, < e9c19d19dd7e08db89cead5b0337c18590dc6645; >= 647810ec247641eb5aec8caef818919a4518a0b1, < 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f; Linux 6.10
Fixed in: Linux 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40225 being exploited?

There is no confirmed exploitation: CVE-2025-40225 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40225?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40225?

Linux \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< efe6dced3512066ebee2cf7c4c38d1c99625814e; \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< e9c19d19dd7e08db89cead5b0337c18590dc6645; \>= 647810ec247641eb5aec8caef818919a4518a0b1, \< 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f; Linux 6.10.

### Is there a fix for CVE-2025-40225?

Yes. Fixed in Linux 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f. Upgrade Linux to 4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f or later.

### How do I check if I'm affected by CVE-2025-40225?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/efe6dced3512066ebee2cf7c4c38d1c99625814e>
- other: <https://git.kernel.org/stable/c/e9c19d19dd7e08db89cead5b0337c18590dc6645>
- other: <https://git.kernel.org/stable/c/4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40225>

HTML: <https://flawdb.com/CVE-2025-40225> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40225>
