# CVE-2022-50494: thermal: intel\_powerclamp: Use get\_cpu() instead of smp\_processor\_id() to avoid crash

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.22% (percentile 8, 2026-11-26)
- **Published:** 2025-10-04T15:43:46.562Z
- **Modified:** 2026-11-05T21:17:02.090Z

## Who should check

- Anyone running Linux \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 3e799e815097febbcb81b472285be824f5d089f9; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 0f91f66c568b316b19cb042cf50584467b3bdff4; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 6904727db0eb62fb0c2dce1cf331c341d97ee4b7; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 5a646c38f648185ee2c62f2a19da3c6f04e27612; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 513943bf879d45005213e6f5cfb7d9e9943f589f; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 5614908434451aafbf9b24cb5247cf1d21269f76; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 6e2a347b304224b2aeb1c0ea000d1cf8a02cc592; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 418fae0700e85a498062424f8656435c32cdb200; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 68b99e94a4a2db6ba9b31fe0485e057b9354a640
- Anyone running Linux 3.9

## Description

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

thermal: intel\_powerclamp: Use get\_cpu() instead of smp\_processor\_id() to avoid crash

When CPU 0 is offline and intel\_powerclamp is used to inject
idle, it generates kernel BUG:

BUG: using smp\_processor\_id() in preemptible \[00000000\] code: bash/15687
caller is debug\_smp\_processor\_id+0x17/0x20
CPU: 4 PID: 15687 Comm: bash Not tainted 5.19.0-rc7+ \#57
Call Trace:
\<TASK\>
dump\_stack\_lvl+0x49/0x63
dump\_stack+0x10/0x16
check\_preemption\_disabled+0xdd/0xe0
debug\_smp\_processor\_id+0x17/0x20
powerclamp\_set\_cur\_state+0x7f/0xf9 \[intel\_powerclamp\]
...
...

Here CPU 0 is the control CPU by default and changed to the current CPU,
if CPU 0 offlined. This check has to be performed under cpus\_read\_lock(),
hence the above warning.

Use get\_cpu() instead of smp\_processor\_id() to avoid this BUG.

\[ rjw: Subject edits \]

## Affected and fixed versions

- Linux: \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 3e799e815097febbcb81b472285be824f5d089f9; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 0f91f66c568b316b19cb042cf50584467b3bdff4; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 6904727db0eb62fb0c2dce1cf331c341d97ee4b7; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 5a646c38f648185ee2c62f2a19da3c6f04e27612; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 513943bf879d45005213e6f5cfb7d9e9943f589f; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 5614908434451aafbf9b24cb5247cf1d21269f76; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 6e2a347b304224b2aeb1c0ea000d1cf8a02cc592; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 418fae0700e85a498062424f8656435c32cdb200; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 68b99e94a4a2db6ba9b31fe0485e057b9354a640 (cvelist)
- Linux: 3.9 (cvelist)

## Mitigation

- Upgrade Linux to 68b99e94a4a2db6ba9b31fe0485e057b9354a640 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50494.md
Affected: Linux >= d6d71ee4a14ae602db343ec48c491851d7ec5267, < 3e799e815097febbcb81b472285be824f5d089f9; >= d6d71ee4a14ae602db343ec48c491851d7ec5267, < 0f91f66c568b316b19cb042cf50584467b3bdff4; >= d6d71ee4a14ae602db343ec48c491851d7ec5267, < 6904727db0eb62fb0c2dce1cf331c341d97ee4b7; >= d6d71ee4a14ae602db343ec…
Fixed in: Linux 3e799e815097febbcb81b472285be824f5d089f9, Linux 0f91f66c568b316b19cb042cf50584467b3bdff4, Linux 6904727db0eb62fb0c2dce1cf331c341d97ee4b7, Linux 5a646c38f648185ee2c62f2a19da3c6f04e27612, Linux 513943bf879d45005213e6f5cfb7d9e9943f589f, Linux 5614908434451aafbf9b24cb5247cf1d21269f76, Linux 6e2a3…

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-2022-50494 being exploited?

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

### How serious is CVE-2022-50494?

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

### Which versions are affected by CVE-2022-50494?

Linux \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 3e799e815097febbcb81b472285be824f5d089f9; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 0f91f66c568b316b19cb042cf50584467b3bdff4; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 6904727db0eb62fb0c2dce1cf331c341d97ee4b7; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 5a646c38f648185ee2c62f2a19da3c6f04e27612; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 513943bf879d45005213e6f5cfb7d9e9943f589f; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 5614908434451aafbf9b24cb5247cf1d21269f76; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 6e2a347b304224b2aeb1c0ea000d1cf8a02cc592; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 418fae0700e85a498062424f8656435c32cdb200; \>= d6d71ee4a14ae602db343ec48c491851d7ec5267, \< 68b99e94a4a2db6ba9b31fe0485e057b9354a640; Linux 3.9.

### Is there a fix for CVE-2022-50494?

Yes. Fixed in Linux 3e799e815097febbcb81b472285be824f5d089f9, Linux 0f91f66c568b316b19cb042cf50584467b3bdff4, Linux 6904727db0eb62fb0c2dce1cf331c341d97ee4b7, Linux 5a646c38f648185ee2c62f2a19da3c6f04e27612, Linux 513943bf879d45005213e6f5cfb7d9e9943f589f, Linux 5614908434451aafbf9b24cb5247cf1d21269f76, Linux 6e2a347b304224b2aeb1c0ea000d1cf8a02cc592, Linux 418fae0700e85a498062424f8656435c32cdb200, Linux 68b99e94a4a2db6ba9b31fe0485e057b9354a640. Upgrade Linux to 68b99e94a4a2db6ba9b31fe0485e057b9354a640 or later.

### How do I check if I'm affected by CVE-2022-50494?

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/3e799e815097febbcb81b472285be824f5d089f9>
- patch: <https://git.kernel.org/stable/c/0f91f66c568b316b19cb042cf50584467b3bdff4>
- patch: <https://git.kernel.org/stable/c/6904727db0eb62fb0c2dce1cf331c341d97ee4b7>
- patch: <https://git.kernel.org/stable/c/5a646c38f648185ee2c62f2a19da3c6f04e27612>
- patch: <https://git.kernel.org/stable/c/513943bf879d45005213e6f5cfb7d9e9943f589f>
- patch: <https://git.kernel.org/stable/c/5614908434451aafbf9b24cb5247cf1d21269f76>
- patch: <https://git.kernel.org/stable/c/6e2a347b304224b2aeb1c0ea000d1cf8a02cc592>
- patch: <https://git.kernel.org/stable/c/418fae0700e85a498062424f8656435c32cdb200>
- patch: <https://git.kernel.org/stable/c/68b99e94a4a2db6ba9b31fe0485e057b9354a640>

## 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-2022-50494>

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