{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50494","id":"CVE-2022-50494","title":"thermal: intel_powerclamp: Use get_cpu() instead of smp_processor_id() to avoid crash","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal: intel_powerclamp: Use get_cpu() instead of smp_processor_id() to avoid crash\n\nWhen CPU 0 is offline and intel_powerclamp is used to inject\nidle, it generates kernel BUG:\n\nBUG: using smp_processor_id() in preemptible [00000000] code: bash/15687\ncaller is debug_smp_processor_id+0x17/0x20\nCPU: 4 PID: 15687 Comm: bash Not ta","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal: intel_powerclamp: Use get_cpu() instead of smp_processor_id() to avoid crash\n\nWhen CPU 0 is offline and intel_powerclamp is used to inject\nidle, it generates kernel BUG:\n\nBUG: using smp_processor_id() in preemptible [00000000] code: bash/15687\ncaller is debug_smp_processor_id+0x17/0x20\nCPU: 4 PID: 15687 Comm: bash Not tainted 5.19.0-rc7+ #57\nCall Trace:\n<TASK>\ndump_stack_lvl+0x49/0x63\ndump_stack+0x10/0x16\ncheck_preemption_disabled+0xdd/0xe0\ndebug_smp_processor_id+0x17/0x20\npowerclamp_set_cur_state+0x7f/0xf9 [intel_powerclamp]\n...\n...\n\nHere CPU 0 is the control CPU by default and changed to the current CPU,\nif CPU 0 offlined. This check has to be performed under cpus_read_lock(),\nhence the above warning.\n\nUse get_cpu() instead of smp_processor_id() to avoid this BUG.\n\n[ rjw: Subject edits ]","published":"2025-10-04T15:43:46.562Z","updated":"2026-11-07T02:30:37.282803293Z","reserved":"2025-10-04T15:39:19.464Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"3e799e815097febbcb81b472285be824f5d089f9","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"0f91f66c568b316b19cb042cf50584467b3bdff4","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"6904727db0eb62fb0c2dce1cf331c341d97ee4b7","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"5a646c38f648185ee2c62f2a19da3c6f04e27612","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"513943bf879d45005213e6f5cfb7d9e9943f589f","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"5614908434451aafbf9b24cb5247cf1d21269f76","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"6e2a347b304224b2aeb1c0ea000d1cf8a02cc592","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"418fae0700e85a498062424f8656435c32cdb200","status":"affected","versionType":"git"},{"version":"d6d71ee4a14ae602db343ec48c491851d7ec5267","lessThan":"68b99e94a4a2db6ba9b31fe0485e057b9354a640","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","lessThan":"3.9","status":"unaffected","versionType":"semver"},{"version":"4.9.331","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.296","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.262","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.220","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.150","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.75","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.17","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0.3","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3e799e815097febbcb81b472285be824f5d089f9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0f91f66c568b316b19cb042cf50584467b3bdff4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6904727db0eb62fb0c2dce1cf331c341d97ee4b7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5a646c38f648185ee2c62f2a19da3c6f04e27612","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/513943bf879d45005213e6f5cfb7d9e9943f589f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5614908434451aafbf9b24cb5247cf1d21269f76","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6e2a347b304224b2aeb1c0ea000d1cf8a02cc592","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/418fae0700e85a498062424f8656435c32cdb200","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/68b99e94a4a2db6ba9b31fe0485e057b9354a640","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50494.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50494","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00165,"epssPercentile":0.05765,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50494","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50494","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50494","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50494","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}