# CVE-2025-38168: perf: arm-ni: Unregister PMUs on probe failure

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-07-03T08:36:07.620Z
- **Modified:** 2026-10-15T22:18:32.020Z

## Who should check

- Anyone running Linux \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 7e958e116e3be05a1f869b5a885fc5d674c7725f; \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 72caf9886e9c1731cf7bfe3eabc308b9268b21d6; \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 7f57afde6a44d9e044885e1125034edd4fda02e8
- Anyone running Linux 6.12

## Description

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

perf: arm-ni: Unregister PMUs on probe failure

When a resource allocation fails in one clock domain of an NI device,
we need to properly roll back all previously registered perf PMUs in
other clock domains of the same device.

Otherwise, it can lead to kernel panics.

Calling arm\_ni\_init+0x0/0xff8 \[arm\_ni\] @ 2374
arm-ni ARMHCB70:00: Failed to request PMU region 0x1f3c13000
arm-ni ARMHCB70:00: probe with driver arm-ni failed with error -16
list\_add corruption: next-\>prev should be prev (fffffd01e9698a18),
but was 0000000000000000. (next=ffff10001a0decc8).
pstate: 6340009 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--)
pc : list\_add\_valid\_or\_report+0x7c/0xb8
lr : list\_add\_valid\_or\_report+0x7c/0xb8
Call trace:
 \_\_list\_add\_valid\_or\_report+0x7c/0xb8
 perf\_pmu\_register+0x22c/0x3a0
 arm\_ni\_probe+0x554/0x70c \[arm\_ni\]
 platform\_probe+0x70/0xe8
 really\_probe+0xc6/0x4d8
 driver\_probe\_device+0x48/0x170
 \_\_driver\_attach+0x8e/0x1c0
 bus\_for\_each\_dev+0x64/0xf0
 driver\_add+0x138/0x260
 bus\_add\_driver+0x68/0x138
 \_\_platform\_driver\_register+0x2c/0x40
 arm\_ni\_init+0x14/0x2a \[arm\_ni\]
 do\_init\_module+0x36/0x298
---\[ end trace 0000000000000000 \]---
Kernel panic - not syncing: Oops - BUG: Fatal exception
SMP: stopping secondary CPUs

## Affected and fixed versions

- Linux: \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 7e958e116e3be05a1f869b5a885fc5d674c7725f; \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 72caf9886e9c1731cf7bfe3eabc308b9268b21d6; \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 7f57afde6a44d9e044885e1125034edd4fda02e8 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 7f57afde6a44d9e044885e1125034edd4fda02e8 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-38168. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38168.md
Affected: Linux >= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, < 7e958e116e3be05a1f869b5a885fc5d674c7725f; >= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, < 72caf9886e9c1731cf7bfe3eabc308b9268b21d6; >= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, < 7f57afde6a44d9e044885e1125034edd4fda02e8; Linux 6.12
Fixed in: Linux 7e958e116e3be05a1f869b5a885fc5d674c7725f, Linux 72caf9886e9c1731cf7bfe3eabc308b9268b21d6, Linux 7f57afde6a44d9e044885e1125034edd4fda02e8

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-38168 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 7e958e116e3be05a1f869b5a885fc5d674c7725f; \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 72caf9886e9c1731cf7bfe3eabc308b9268b21d6; \>= 4d5a7680f2b4d0c2955e1d9f9a594b050d637436, \< 7f57afde6a44d9e044885e1125034edd4fda02e8; Linux 6.12.

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

Yes. Fixed in Linux 7e958e116e3be05a1f869b5a885fc5d674c7725f, Linux 72caf9886e9c1731cf7bfe3eabc308b9268b21d6, Linux 7f57afde6a44d9e044885e1125034edd4fda02e8. Upgrade Linux to 7f57afde6a44d9e044885e1125034edd4fda02e8 or later.

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

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

- patch: <https://git.kernel.org/stable/c/7e958e116e3be05a1f869b5a885fc5d674c7725f>
- patch: <https://git.kernel.org/stable/c/72caf9886e9c1731cf7bfe3eabc308b9268b21d6>
- patch: <https://git.kernel.org/stable/c/7f57afde6a44d9e044885e1125034edd4fda02e8>

## 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-38168>

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