# CVE-2022-50491: coresight: cti: Fix hang in cti\_disable\_hw()

> 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 7, 2026-11-26)
- **Published:** 2025-10-04T15:43:44.470Z
- **Modified:** 2026-06-17T05:23:39.610Z

## Who should check

- Anyone running Linux \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< e33ce54cef5d429430e3b1ae5c8ee4f4103c4fdc; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< 4c365a0c21aaf2b8fcc88de8dc298803288f61ac; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< c51cfba50df8b9e16bfe0e6d4f2f252a4a10063d; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< 6746eae4bbaddcc16b40efb33dab79210828b3ce
- Anyone running Linux 5.7

## Description

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 \]

## Affected and fixed versions

- Linux: \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< e33ce54cef5d429430e3b1ae5c8ee4f4103c4fdc; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< 4c365a0c21aaf2b8fcc88de8dc298803288f61ac; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< c51cfba50df8b9e16bfe0e6d4f2f252a4a10063d; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< 6746eae4bbaddcc16b40efb33dab79210828b3ce (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50491.md
Affected: Linux >= 835d722ba10ac924adba1e8a46f2d80955222b4b, < e33ce54cef5d429430e3b1ae5c8ee4f4103c4fdc; >= 835d722ba10ac924adba1e8a46f2d80955222b4b, < 4c365a0c21aaf2b8fcc88de8dc298803288f61ac; >= 835d722ba10ac924adba1e8a46f2d80955222b4b, < c51cfba50df8b9e16bfe0e6d4f2f252a4a10063d; >= 835d722ba10ac924adba1e8…
Fixed in: Linux 4c365a0c21aaf2b8fcc88de8dc298803288f61ac, Linux 6746eae4bbaddcc16b40efb33dab79210828b3ce

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

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

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

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

Linux \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< e33ce54cef5d429430e3b1ae5c8ee4f4103c4fdc; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< 4c365a0c21aaf2b8fcc88de8dc298803288f61ac; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< c51cfba50df8b9e16bfe0e6d4f2f252a4a10063d; \>= 835d722ba10ac924adba1e8a46f2d80955222b4b, \< 6746eae4bbaddcc16b40efb33dab79210828b3ce; Linux 5.7.

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

Yes. Fixed in Linux 4c365a0c21aaf2b8fcc88de8dc298803288f61ac, Linux 6746eae4bbaddcc16b40efb33dab79210828b3ce. Upgrade Linux to 6746eae4bbaddcc16b40efb33dab79210828b3ce or later.

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

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/e33ce54cef5d429430e3b1ae5c8ee4f4103c4fdc>
- patch: <https://git.kernel.org/stable/c/4c365a0c21aaf2b8fcc88de8dc298803288f61ac>
- patch: <https://git.kernel.org/stable/c/c51cfba50df8b9e16bfe0e6d4f2f252a4a10063d>
- patch: <https://git.kernel.org/stable/c/6746eae4bbaddcc16b40efb33dab79210828b3ce>

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

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