CVE-2022-50494: thermal: intel_powerclamp: Use get_cpu() instead of smp_processor_id() to avoid crash

Published Oct 4, 2025
·
Updated

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

thermal: intelpowerclamp: Use getcpu() instead of smpprocessorid() to avoid crash

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

BUG: using smpprocessorid() in preemptible [00000000] code: bash/15687 caller is debugsmpprocessorid+0x17/0x20 CPU: 4 PID: 15687 Comm: bash Not tainted 5.19.0-rc7+ #57 Call Trace: <TASK> dumpstacklvl+0x49/0x63 dumpstack+0x10/0x16 checkpreemptiondisabled+0xdd/0xe0 debugsmpprocessorid+0x17/0x20 powerclampsetcurstate+0x7f/0xf9 [intelpowerclamp] ... ...

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 cpusreadlock(), hence the above warning.

Use getcpu() instead of smpprocessorid() to avoid this BUG.

[ rjw: Subject edits ]

Affected Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=3.9<4.9.331
Linux Linux kernel>=4.10<4.14.296
Linux Linux kernel>=4.15<4.19.262
Linux Linux kernel>=4.20<5.4.220
Linux Linux kernel>=5.5<5.10.150
Linux Linux kernel>=5.11<5.15.75
Linux Linux kernel>=5.16<5.19.17
Linux Linux kernel>=6.0<6.0.3

Event History

Oct 4, 2025
CVE Published
via MITRE·03:43 PM
Data Sourced
via MITRE·03:43 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50494?

CVE-2022-50494 has a medium severity rating due to the potential for kernel crashes under specific conditions.

2

How does CVE-2022-50494 affect the Linux kernel?

CVE-2022-50494 affects the Linux kernel's intel_powerclamp functionality, potentially leading to crashes when CPU 0 is offline.

3

How do I fix CVE-2022-50494?

To fix CVE-2022-50494, update to a patched version of the Linux kernel that incorporates the fix for this vulnerability.

4

What are the symptoms of CVE-2022-50494?

Symptoms of CVE-2022-50494 include unexpected kernel panics or crashes related to the intel_powerclamp feature.

5

Is CVE-2022-50494 relevant to all Linux kernel versions?

CVE-2022-50494 specifically affects certain versions of the Linux kernel that utilize intel_powerclamp and may not be present in all versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203