# CVE-2022-49223: cxl/port: Hold port reference until decoder release

> 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, CNA) `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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T01:55:54.274Z
- **Modified:** 2026-06-17T05:17:25.977Z

## Who should check

- Anyone running Linux \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 518bb96367123062b48b0a9842f2864249b565f6; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< b0022ca445d5fc4d0c89d15dcd0f855977b22c1d; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 49f2dab77a5e1354f5da6ccdc9346a8212697be2; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 74be98774dfbc5b8b795db726bd772e735d2edd4
- Anyone running Linux 5.14

## Description

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

cxl/port: Hold port reference until decoder release

KASAN + DEBUG\_KOBJECT\_RELEASE reports a potential use-after-free in
cxl\_decoder\_release() where it goes to reference its parent, a cxl\_port,
to free its id back to port-\>decoder\_ida.

 BUG: KASAN: use-after-free in to\_cxl\_port+0x18/0x90 \[cxl\_core\]
 Read of size 8 at addr ffff888119270908 by task kworker/35:2/379

 CPU: 35 PID: 379 Comm: kworker/35:2 Tainted: G           OE     5.17.0-rc2+ \#198
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
 Workqueue: events kobject\_delayed\_cleanup
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x59/0x73
  print\_address\_description.constprop.0+0x1f/0x150
  ? to\_cxl\_port+0x18/0x90 \[cxl\_core\]
  kasan\_report.cold+0x83/0xdf
  ? to\_cxl\_port+0x18/0x90 \[cxl\_core\]
  to\_cxl\_port+0x18/0x90 \[cxl\_core\]
  cxl\_decoder\_release+0x2a/0x60 \[cxl\_core\]
  device\_release+0x5f/0x100
  kobject\_cleanup+0x80/0x1c0

The device core only guarantees parent lifetime until all children are
unregistered. If a child needs a parent to complete its -\>release()
callback that child needs to hold a reference to extend the lifetime of
the parent.

## Affected and fixed versions

- Linux: \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 518bb96367123062b48b0a9842f2864249b565f6; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< b0022ca445d5fc4d0c89d15dcd0f855977b22c1d; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 49f2dab77a5e1354f5da6ccdc9346a8212697be2; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 74be98774dfbc5b8b795db726bd772e735d2edd4 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49223.md
Affected: Linux >= 40ba17afdfabb01688c61565dbe02a916241bc05, < 518bb96367123062b48b0a9842f2864249b565f6; >= 40ba17afdfabb01688c61565dbe02a916241bc05, < b0022ca445d5fc4d0c89d15dcd0f855977b22c1d; >= 40ba17afdfabb01688c61565dbe02a916241bc05, < 49f2dab77a5e1354f5da6ccdc9346a8212697be2; >= 40ba17afdfabb01688c6156…
Fixed in: Linux 518bb96367123062b48b0a9842f2864249b565f6, Linux 49f2dab77a5e1354f5da6ccdc9346a8212697be2, Linux 74be98774dfbc5b8b795db726bd772e735d2edd4

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

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

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

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

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

Linux \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 518bb96367123062b48b0a9842f2864249b565f6; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< b0022ca445d5fc4d0c89d15dcd0f855977b22c1d; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 49f2dab77a5e1354f5da6ccdc9346a8212697be2; \>= 40ba17afdfabb01688c61565dbe02a916241bc05, \< 74be98774dfbc5b8b795db726bd772e735d2edd4; Linux 5.14.

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

Yes. Fixed in Linux 518bb96367123062b48b0a9842f2864249b565f6, Linux 49f2dab77a5e1354f5da6ccdc9346a8212697be2, Linux 74be98774dfbc5b8b795db726bd772e735d2edd4. Upgrade Linux to 74be98774dfbc5b8b795db726bd772e735d2edd4 or later.

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

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/518bb96367123062b48b0a9842f2864249b565f6>
- patch: <https://git.kernel.org/stable/c/b0022ca445d5fc4d0c89d15dcd0f855977b22c1d>
- patch: <https://git.kernel.org/stable/c/49f2dab77a5e1354f5da6ccdc9346a8212697be2>
- patch: <https://git.kernel.org/stable/c/74be98774dfbc5b8b795db726bd772e735d2edd4>

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

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