# CVE-2022-50214: coresight: Clear the connection field properly

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.29% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-06-18T11:03:51.561Z
- **Modified:** 2026-06-17T05:22:59.657Z

## Who should check

- Anyone running Linux \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< e9205d8dd1cafb7cff689ef9ddf06276a68f54a4; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< 847b9273dd61567fb77617eabc5fa002594db062; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< b49b29ee113a87997bcca0bb0585bb46582846c1; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< d43e967963c4d1b2b49f894d2f1b12865f87b098; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< bc57850fcb7e4cb91b6321d0ce83357cefd55c54; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< 2af89ebacf299b7fba5f3087d35e8a286ec33706
- Anyone running Linux 5.3

## Description

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

coresight: Clear the connection field properly

coresight devices track their connections (output connections) and
hold a reference to the fwnode. When a device goes away, we walk through
the devices on the coresight bus and make sure that the references
are dropped. This happens both ways:
 a) For all output connections from the device, drop the reference to
    the target device via coresight\_release\_platform\_data()

b) Iterate over all the devices on the coresight bus and drop the
   reference to fwnode if \*this\* device is the target of the output
   connection, via coresight\_remove\_conns()-\>coresight\_remove\_match().

However, the coresight\_remove\_match() doesn't clear the fwnode field,
after dropping the reference, this causes use-after-free and
additional refcount drops on the fwnode.

e.g., if we have two devices, A and B, with a connection, A -\> B.
If we remove B first, B would clear the reference on B, from A
via coresight\_remove\_match(). But when A is removed, it still has
a connection with fwnode still pointing to B. Thus it tries to  drops
the reference in coresight\_release\_platform\_data(), raising the bells
like :

\[   91.990153\] ------------\[ cut here \]------------
\[   91.990163\] refcount\_t: addition on 0; use-after-free.
\[   91.990212\] WARNING: CPU: 0 PID: 461 at lib/refcount.c:25 refcount\_warn\_saturate+0xa0/0x144
\[   91.990260\] Modules linked in: coresight\_funnel coresight\_replicator coresight\_etm4x(-)
 crct10dif\_ce coresight ip\_tables x\_tables ipv6 \[last unloaded: coresight\_cpu\_debug\]
\[   91.990398\] CPU: 0 PID: 461 Comm: rmmod Tainted: G        W       T 5.19.0-rc2+ \#53
\[   91.990418\] Hardware name: ARM LTD ARM Juno Development Platform/ARM Juno Development Platform, BIOS EDK II Feb  1 2019
\[   91.990434\] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[   91.990454\] pc : refcount\_warn\_saturate+0xa0/0x144
\[   91.990476\] lr : refcount\_warn\_saturate+0xa0/0x144
\[   91.990496\] sp : ffff80000c843640
\[   91.990509\] x29: ffff80000c843640 x28: ffff800009957c28 x27: ffff80000c8439a8
\[   91.990560\] x26: ffff00097eff1990 x25: ffff8000092b6ad8 x24: ffff00097eff19a8
\[   91.990610\] x23: ffff80000c8439a8 x22: 0000000000000000 x21: ffff80000c8439c2
\[   91.990659\] x20: 0000000000000000 x19: ffff00097eff1a10 x18: ffff80000ab99c40
\[   91.990708\] x17: 0000000000000000 x16: 0000000000000000 x15: ffff80000abf6fa0
\[   91.990756\] x14: 000000000000001d x13: 0a2e656572662d72 x12: 657466612d657375
\[   91.990805\] x11: 203b30206e6f206e x10: 6f69746964646120 x9 : ffff8000081aba28
\[   91.990854\] x8 : 206e6f206e6f6974 x7 : 69646461203a745f x6 : 746e756f63666572
\[   91.990903\] x5 : ffff00097648ec58 x4 : 0000000000000000 x3 : 0000000000000027
\[   91.990952\] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff00080260ba00
\[   91.991000\] Call trace:
\[   91.991012\]  refcount\_warn\_saturate+0xa0/0x144
\[   91.991034\]  kobject\_get+0xac/0xb0
\[   91.991055\]  of\_node\_get+0x2c/0x40
\[   91.991076\]  of\_fwnode\_get+0x40/0x60
\[   91.991094\]  fwnode\_handle\_get+0x3c/0x60
\[   91.991116\]  fwnode\_get\_nth\_parent+0xf4/0x110
\[   91.991137\]  fwnode\_full\_name\_string+0x48/0xc0
\[   91.991158\]  device\_node\_string+0x41c/0x530
\[   91.991178\]  pointer+0x320/0x3ec
\[   91.991198\]  vsnprintf+0x23c/0x750
\[   91.991217\]  vprintk\_store+0x104/0x4b0
\[   91.991238\]  vprintk\_emit+0x8c/0x360
\[   91.991257\]  vprintk\_default+0x44/0x50
\[   91.991276\]  vprintk+0xcc/0xf0
\[   91.991295\]  \_printk+0x68/0x90
\[   91.991315\]  of\_node\_release+0x13c/0x14c
\[   91.991334\]  kobject\_put+0x98/0x114
\[   91.991354\]  of\_node\_put+0x24/0x34
\[   91.991372\]  of\_fwnode\_put+0x40/0x5c
\[   91.991390\]  fwnode\_handle\_put+0x38/0x50
\[   91.991411\]  coresight\_release\_platform\_data+0x74/0xb0 \[coresight\]
\[   91.991472\]  coresight\_unregister+0x64/0xcc \[coresight\]
\[   91.991525\]  etm4\_remove\_dev+0x64/0x78 \[coresight\_etm4x\]
\[   91.991563\]  etm4\_remove\_amba+0x1c/0x2c \[coresight\_etm4x\]
\[   91.991598\]  amba\_remove+0x3c/0x19c
---truncated---

## Affected and fixed versions

- Linux: \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< e9205d8dd1cafb7cff689ef9ddf06276a68f54a4; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< 847b9273dd61567fb77617eabc5fa002594db062; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< b49b29ee113a87997bcca0bb0585bb46582846c1; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< d43e967963c4d1b2b49f894d2f1b12865f87b098; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< bc57850fcb7e4cb91b6321d0ce83357cefd55c54; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< 2af89ebacf299b7fba5f3087d35e8a286ec33706 (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50214.md
Affected: Linux >= 37ea1ffddffa63c920ce826786fe610c78f57842, < e9205d8dd1cafb7cff689ef9ddf06276a68f54a4; >= 37ea1ffddffa63c920ce826786fe610c78f57842, < 847b9273dd61567fb77617eabc5fa002594db062; >= 37ea1ffddffa63c920ce826786fe610c78f57842, < b49b29ee113a87997bcca0bb0585bb46582846c1; >= 37ea1ffddffa63c920ce826…
Fixed in: Linux 847b9273dd61567fb77617eabc5fa002594db062, Linux 2af89ebacf299b7fba5f3087d35e8a286ec33706

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

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

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

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

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

Linux \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< e9205d8dd1cafb7cff689ef9ddf06276a68f54a4; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< 847b9273dd61567fb77617eabc5fa002594db062; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< b49b29ee113a87997bcca0bb0585bb46582846c1; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< d43e967963c4d1b2b49f894d2f1b12865f87b098; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< bc57850fcb7e4cb91b6321d0ce83357cefd55c54; \>= 37ea1ffddffa63c920ce826786fe610c78f57842, \< 2af89ebacf299b7fba5f3087d35e8a286ec33706; Linux 5.3.

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

Yes. Fixed in Linux 847b9273dd61567fb77617eabc5fa002594db062, Linux 2af89ebacf299b7fba5f3087d35e8a286ec33706. Upgrade Linux to 2af89ebacf299b7fba5f3087d35e8a286ec33706 or later.

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

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/e9205d8dd1cafb7cff689ef9ddf06276a68f54a4>
- patch: <https://git.kernel.org/stable/c/847b9273dd61567fb77617eabc5fa002594db062>
- patch: <https://git.kernel.org/stable/c/b49b29ee113a87997bcca0bb0585bb46582846c1>
- patch: <https://git.kernel.org/stable/c/d43e967963c4d1b2b49f894d2f1b12865f87b098>
- patch: <https://git.kernel.org/stable/c/bc57850fcb7e4cb91b6321d0ce83357cefd55c54>
- patch: <https://git.kernel.org/stable/c/2af89ebacf299b7fba5f3087d35e8a286ec33706>

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

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