# CVE-2022-50319: coresight: trbe: remove cpuhp instance node before remove cpuhp state

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-15T14:48:52.017Z
- **Modified:** 2026-06-17T05:23:13.630Z

## Who should check

- Anyone running Linux \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 18b9202188a4e59923834c60b5c82ea1da7d1811; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 2ea334960afcd49385840c7afd59fc5f8d3ce682; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 3c18888bc0b51835c74123b1e04d5df11543724c; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 20ee8c223f792947378196307d8e707c9cdc2d61
- Anyone running Linux 5.13

## Description

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

coresight: trbe: remove cpuhp instance node before remove cpuhp state

cpuhp\_state\_add\_instance() and cpuhp\_state\_remove\_instance() should
be used in pairs. Or there will lead to the warn on
cpuhp\_remove\_multi\_state() since the cpuhp\_step list is not empty.

The following is the error log with 'rmmod coresight-trbe':
Error: Removing state 215 which has instances left.
Call trace:
  \_\_cpuhp\_remove\_state\_cpuslocked+0x144/0x160
  \_\_cpuhp\_remove\_state+0xac/0x100
  arm\_trbe\_device\_remove+0x2c/0x60 \[coresight\_trbe\]
  platform\_remove+0x34/0x70
  device\_remove+0x54/0x90
  device\_release\_driver\_internal+0x1e4/0x250
  driver\_detach+0x5c/0xb0
  bus\_remove\_driver+0x64/0xc0
  driver\_unregister+0x3c/0x70
  platform\_driver\_unregister+0x20/0x30
  arm\_trbe\_exit+0x1c/0x658 \[coresight\_trbe\]
  \_\_arm64\_sys\_delete\_module+0x1ac/0x24c
  invoke\_syscall+0x50/0x120
  el0\_svc\_common.constprop.0+0x58/0x1a0
  do\_el0\_svc+0x38/0xd0
  el0\_svc+0x2c/0xc0
  el0t\_64\_sync\_handler+0x1ac/0x1b0
  el0t\_64\_sync+0x19c/0x1a0
 ---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 18b9202188a4e59923834c60b5c82ea1da7d1811; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 2ea334960afcd49385840c7afd59fc5f8d3ce682; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 3c18888bc0b51835c74123b1e04d5df11543724c; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 20ee8c223f792947378196307d8e707c9cdc2d61 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50319.md
Affected: Linux >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 18b9202188a4e59923834c60b5c82ea1da7d1811; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 2ea334960afcd49385840c7afd59fc5f8d3ce682; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 3c18888bc0b51835c74123b1e04d5df11543724c; >= 3fbf7f011f2426dac8c982f…
Fixed in: Linux 18b9202188a4e59923834c60b5c82ea1da7d1811, Linux 2ea334960afcd49385840c7afd59fc5f8d3ce682, Linux 3c18888bc0b51835c74123b1e04d5df11543724c, Linux 20ee8c223f792947378196307d8e707c9cdc2d61

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

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

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

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

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

Linux \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 18b9202188a4e59923834c60b5c82ea1da7d1811; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 2ea334960afcd49385840c7afd59fc5f8d3ce682; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 3c18888bc0b51835c74123b1e04d5df11543724c; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 20ee8c223f792947378196307d8e707c9cdc2d61; Linux 5.13.

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

Yes. Fixed in Linux 18b9202188a4e59923834c60b5c82ea1da7d1811, Linux 2ea334960afcd49385840c7afd59fc5f8d3ce682, Linux 3c18888bc0b51835c74123b1e04d5df11543724c, Linux 20ee8c223f792947378196307d8e707c9cdc2d61. Upgrade Linux to 20ee8c223f792947378196307d8e707c9cdc2d61 or later.

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

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/18b9202188a4e59923834c60b5c82ea1da7d1811>
- patch: <https://git.kernel.org/stable/c/2ea334960afcd49385840c7afd59fc5f8d3ce682>
- patch: <https://git.kernel.org/stable/c/3c18888bc0b51835c74123b1e04d5df11543724c>
- patch: <https://git.kernel.org/stable/c/20ee8c223f792947378196307d8e707c9cdc2d61>

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

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