# CVE-2025-38295: perf/amlogic: Replace smp\_processor\_id() with raw\_smp\_processor\_id() in meson\_ddr\_pmu\_create()

> 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, NVD) `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-10T07:42:09.521Z
- **Modified:** 2026-06-17T09:16:34.130Z

## Who should check

- Anyone running Linux \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 77511c2d2d1cbce8d9b4f50849843dd469d14173; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< b038ffbd49e41f99228dbb0c66d6dd7b20292884; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 6f5f53048d3b761d694430632d3a03977273e987; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 097469a2b0f12b91b4f27b9e9e4f2c46484cde30
- Anyone running Linux 6.2

## Description

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

perf/amlogic: Replace smp\_processor\_id() with raw\_smp\_processor\_id() in meson\_ddr\_pmu\_create()

The Amlogic DDR PMU driver meson\_ddr\_pmu\_create() function incorrectly uses
smp\_processor\_id(), which assumes disabled preemption. This leads to kernel
warnings during module loading because meson\_ddr\_pmu\_create() can be called
in a preemptible context.

Following kernel warning and stack trace:
\[   31.745138\] \[   T2289\] BUG: using smp\_processor\_id() in preemptible \[00000000\] code: (udev-worker)/2289
\[   31.745154\] \[   T2289\] caller is debug\_smp\_processor\_id+0x28/0x38
\[   31.745172\] \[   T2289\] CPU: 4 UID: 0 PID: 2289 Comm: (udev-worker) Tainted: GW 6.14.0-0-MANJARO-ARM \#1 59519addcbca6ba8de735e151fd7b9e97aac7ff0
\[   31.745181\] \[   T2289\] Tainted: \[W\]=WARN
\[   31.745183\] \[   T2289\] Hardware name: Hardkernel ODROID-N2Plus (DT)
\[   31.745188\] \[   T2289\] Call trace:
\[   31.745191\] \[   T2289\]  show\_stack+0x28/0x40 (C)
\[   31.745199\] \[   T2289\]  dump\_stack\_lvl+0x4c/0x198
\[   31.745205\] \[   T2289\]  dump\_stack+0x20/0x50
\[   31.745209\] \[   T2289\]  check\_preemption\_disabled+0xec/0xf0
\[   31.745213\] \[   T2289\]  debug\_smp\_processor\_id+0x28/0x38
\[   31.745216\] \[   T2289\]  meson\_ddr\_pmu\_create+0x200/0x560 \[meson\_ddr\_pmu\_g12 8095101c49676ad138d9961e3eddaee10acca7bd\]
\[   31.745237\] \[   T2289\]  g12\_ddr\_pmu\_probe+0x20/0x38 \[meson\_ddr\_pmu\_g12 8095101c49676ad138d9961e3eddaee10acca7bd\]
\[   31.745246\] \[   T2289\]  platform\_probe+0x98/0xe0
\[   31.745254\] \[   T2289\]  really\_probe+0x144/0x3f8
\[   31.745258\] \[   T2289\]  \_\_driver\_probe\_device+0xb8/0x180
\[   31.745261\] \[   T2289\]  driver\_probe\_device+0x54/0x268
\[   31.745264\] \[   T2289\]  \_\_driver\_attach+0x11c/0x288
\[   31.745267\] \[   T2289\]  bus\_for\_each\_dev+0xfc/0x160
\[   31.745274\] \[   T2289\]  driver\_attach+0x34/0x50
\[   31.745277\] \[   T2289\]  bus\_add\_driver+0x160/0x2b0
\[   31.745281\] \[   T2289\]  driver\_register+0x78/0x120
\[   31.745285\] \[   T2289\]  \_\_platform\_driver\_register+0x30/0x48
\[   31.745288\] \[   T2289\]  init\_module+0x30/0xfe0 \[meson\_ddr\_pmu\_g12 8095101c49676ad138d9961e3eddaee10acca7bd\]
\[   31.745298\] \[   T2289\]  do\_one\_initcall+0x11c/0x438
\[   31.745303\] \[   T2289\]  do\_init\_module+0x68/0x228
\[   31.745311\] \[   T2289\]  load\_module+0x118c/0x13a8
\[   31.745315\] \[   T2289\]  \_\_arm64\_sys\_finit\_module+0x274/0x390
\[   31.745320\] \[   T2289\]  invoke\_syscall+0x74/0x108
\[   31.745326\] \[   T2289\]  el0\_svc\_common+0x90/0xf8
\[   31.745330\] \[   T2289\]  do\_el0\_svc+0x2c/0x48
\[   31.745333\] \[   T2289\]  el0\_svc+0x60/0x150
\[   31.745337\] \[   T2289\]  el0t\_64\_sync\_handler+0x80/0x118
\[   31.745341\] \[   T2289\]  el0t\_64\_sync+0x1b8/0x1c0

Changes replaces smp\_processor\_id() with raw\_smp\_processor\_id() to
ensure safe CPU ID retrieval in preemptible contexts.

## Affected and fixed versions

- Linux: \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 77511c2d2d1cbce8d9b4f50849843dd469d14173; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< b038ffbd49e41f99228dbb0c66d6dd7b20292884; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 6f5f53048d3b761d694430632d3a03977273e987; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 097469a2b0f12b91b4f27b9e9e4f2c46484cde30 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-38295.md
Affected: Linux >= 2016e2113d35ba06866961a39e9a9c822f2ffabd, < 77511c2d2d1cbce8d9b4f50849843dd469d14173; >= 2016e2113d35ba06866961a39e9a9c822f2ffabd, < b038ffbd49e41f99228dbb0c66d6dd7b20292884; >= 2016e2113d35ba06866961a39e9a9c822f2ffabd, < 6f5f53048d3b761d694430632d3a03977273e987; >= 2016e2113d35ba06866961a…
Fixed in: Linux 77511c2d2d1cbce8d9b4f50849843dd469d14173, Linux 6f5f53048d3b761d694430632d3a03977273e987, Linux 097469a2b0f12b91b4f27b9e9e4f2c46484cde30

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

There is no confirmed exploitation: CVE-2025-38295 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-38295?

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

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

Linux \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 77511c2d2d1cbce8d9b4f50849843dd469d14173; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< b038ffbd49e41f99228dbb0c66d6dd7b20292884; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 6f5f53048d3b761d694430632d3a03977273e987; \>= 2016e2113d35ba06866961a39e9a9c822f2ffabd, \< 097469a2b0f12b91b4f27b9e9e4f2c46484cde30; Linux 6.2.

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

Yes. Fixed in Linux 77511c2d2d1cbce8d9b4f50849843dd469d14173, Linux 6f5f53048d3b761d694430632d3a03977273e987, Linux 097469a2b0f12b91b4f27b9e9e4f2c46484cde30. Upgrade Linux to 097469a2b0f12b91b4f27b9e9e4f2c46484cde30 or later.

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

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/77511c2d2d1cbce8d9b4f50849843dd469d14173>
- patch: <https://git.kernel.org/stable/c/b038ffbd49e41f99228dbb0c66d6dd7b20292884>
- patch: <https://git.kernel.org/stable/c/6f5f53048d3b761d694430632d3a03977273e987>
- patch: <https://git.kernel.org/stable/c/097469a2b0f12b91b4f27b9e9e4f2c46484cde30>

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

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