
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49223 is a use-after-free vulnerability discovered in the Linux kernel's CXL (Compute Express Link) port handling. The issue occurs in the cxl_decoder_release() function where it attempts to reference its parent, a cxl_port, to free its ID back to port->decoder_ida. This vulnerability was identified when KASAN + DEBUG_KOBJECT_RELEASE reported a potential use-after-free condition (Kernel Git).
The vulnerability stems from a reference handling issue in the Linux kernel's CXL subsystem. The device core only guarantees parent lifetime until all children are unregistered. However, 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. The issue was specifically identified in the cxl_decoder_release() function where a use-after-free condition could occur when accessing the parent cxl_port object (Kernel Git). The vulnerability has been assigned a CVSS v3.1 Base Score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).
The vulnerability could lead to a use-after-free condition in the kernel's CXL subsystem, potentially resulting in system crashes, memory corruption, or privilege escalation. The high CVSS score indicates that successful exploitation could have significant impacts on system confidentiality, integrity, and availability (NVD).
The vulnerability requires local access with low privileges to exploit. The attack complexity is low, requiring no user interaction, making it relatively straightforward to exploit in environments where an attacker has local access to the system (NVD).
The issue has been fixed by adding proper reference counting in the CXL subsystem. The fix involves holding the port reference until decoder release by adding get_device() and put_device() calls to maintain proper object lifetime. The patch was committed to the Linux kernel repository and is available in updated kernel versions (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."