nday
CVE-2022-50491

coresight: cti: Fix hang in cti_disable_hw()

Linux / Linux

揭露時間:。nday 尚未取得修補依據,不能據此認為沒有修補。四個 PoC 來源皆未收錄。目前未列入 CISA KEV。

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

local
AV:L in CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1) from NVD's analysts
no user interaction
UI:N in CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1) from NVD's analysts
Linux kernel
affected products in the CVE record: Linux · LinuxCPE names NVD's analysts give as vulnerable: o:linux:linux_kernel
operating system
affected products in the CVE record: Linux · LinuxCPE names NVD's analysts give as vulnerable: o:linux:linux_kernelthe product type of Linux kernel in nday's product registry
目前階段
DIS
揭露時間
CVSS
暫無評分

生命週期

橫軸 UTC;點=精確到分鐘,寬條=僅日期,空心=不明或推斷。
時間不明
DIS揭露
2025-10-04T15:43Z
PAT修補
尚無紀錄
ANA分析
尚無紀錄
POCPoC
尚無紀錄
ITW遭利用
尚無紀錄
KEVKEV
尚無紀錄

摘要

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

coresight: cti: Fix hang in cti_disable_hw()

cti_enable_hw() and cti_disable_hw() are called from an atomic context so shouldn't use runtime PM because it can result in a sleep when communicating with firmware.

Since commit 3c6656337852 ("Revert "firmware: arm_scmi: Add clock management to the SCMI power domain""), this causes a hang on Juno when running the Perf Coresight tests or running this command:

perf record -e cs_etm//u -- ls

This was also missed until the revert commit because pm_runtime_put() was called with the wrong device until commit 692c9a499b28 ("coresight: cti: Correct the parameter for pm_runtime_put")

With lock and scheduler debugging enabled the following is output:

coresight cti_sys0: cti_enable_hw -- dev:cti_sys0  parent: 20020000.cti
BUG: sleeping function called from invalid context at drivers/base/power/runtime.c:1151
in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 330, name: perf-exec
preempt_count: 2, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
irq event stamp: 0
hardirqs last  enabled at (0): [<0000000000000000>] 0x0
hardirqs last disabled at (0): [<ffff80000822b394>] copy_process+0xa0c/0x1948
softirqs last  enabled at (0): [<ffff80000822b394>] copy_process+0xa0c/0x1948
softirqs last disabled at (0): [<0000000000000000>] 0x0
CPU: 3 PID: 330 Comm: perf-exec Not tainted 6.0.0-00053-g042116d99298 #7
Hardware name: ARM LTD ARM Juno Development Platform/ARM Juno Development Platform, BIOS EDK II Sep 13 2022
Call trace:
 dump_backtrace+0x134/0x140
 show_stack+0x20/0x58
 dump_stack_lvl+0x8c/0xb8
 dump_stack+0x18/0x34
 __might_resched+0x180/0x228
 __might_sleep+0x50/0x88
 __pm_runtime_resume+0xac/0xb0
 cti_enable+0x44/0x120
 coresight_control_assoc_ectdev+0xc0/0x150
 coresight_enable_path+0xb4/0x288
 etm_event_start+0x138/0x170
 etm_event_add+0x48/0x70
 event_sched_in.isra.122+0xb4/0x280
 merge_sched_in+0x1fc/0x3d0
 visit_groups_merge.constprop.137+0x16c/0x4b0
 ctx_sched_in+0x114/0x1f0
 perf_event_sched_in+0x60/0x90
 ctx_resched+0x68/0xb0
 perf_event_exec+0x138/0x508
 begin_new_exec+0x52c/0xd40
 load_elf_binary+0x6b8/0x17d0
 bprm_execve+0x360/0x7f8
 do_execveat_common.isra.47+0x218/0x238
 __arm64_sys_execve+0x48/0x60
 invoke_syscall+0x4c/0x110
 el0_svc_common.constprop.4+0xfc/0x120
 do_el0_svc+0x34/0xc0
 el0_svc+0x40/0x98
 el0t_64_sync_handler+0x98/0xc0
 el0t_64_sync+0x170/0x174

Fix the issue by removing the runtime PM calls completely. They are not needed here because it must have already been done when building the path for a trace.

[ Fix build warnings ]

Original text of the CVE record (cvelist), shown as published.

事件紀錄

+DIS揭露

CVE 紀錄由 Linux 發布。

來源 cvelist · nday 於 批次匯入 · 原始
{
  "id": 279730,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2022-50491",
  "occurred_at": "2025-10-04T15:43:44.47Z",
  "observed_at": "2026-11-13T05:37:51.196939Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2025-10-04T15:43:44.470Z",
    "assigner_short_name": "Linux"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

研究員討論

近 7 天有 0 位研究員提及

名單內研究員在 X 上提及此 CVE 的貼文,照原文呈現,nday 不查核。

尚未收錄名單內研究員在 X 上提及此 CVE 的貼文。

Discussion

0 comments

No comments yet.