Skip to main content

CVE-2022-49712: Vulnerability in Linux Linux

Medium
VulnerabilityCVE-2022-49712cvecve-2022-49712
Published: Wed Feb 26 2025 (02/26/2025, 02:24:28 UTC)
Source: CVE
Vendor/Project: Linux
Product: Linux

Description

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. of_node_put() will check NULL pointer.

AI-Powered Analysis

AILast updated: 06/30/2025, 00:39:52 UTC

Technical Analysis

CVE-2022-49712 is a vulnerability identified in the Linux kernel specifically affecting the USB gadget driver for the LPC32xx platform (lpc32xx_udc). The issue arises from a reference count leak in the function lpc32xx_udc_probe. The root cause is improper management of device tree node references obtained via the of_parse_phandle() function. This function returns a node pointer with an incremented reference count, which must be decremented using of_node_put() when the node is no longer needed. The vulnerability exists because the code failed to call of_node_put(), leading to a reference count leak. Over time, this leak can cause resource exhaustion in the kernel, potentially leading to instability or denial of service. The fix involves adding the missing of_node_put() call to properly release the node reference, ensuring that the reference count is correctly decremented and preventing the leak. The vulnerability does not appear to have any known exploits in the wild and does not have a CVSS score assigned yet. It affects specific Linux kernel versions identified by a particular commit hash, indicating a narrow scope of affected versions. The vulnerability is technical and low-level, related to kernel resource management rather than direct code execution or privilege escalation.

Potential Impact

For European organizations, the impact of CVE-2022-49712 is primarily related to system stability and availability rather than direct compromise of confidentiality or integrity. Systems running Linux kernels with the affected USB gadget driver on LPC32xx hardware platforms could experience resource leaks that degrade performance or cause kernel crashes over time. This could disrupt operations, particularly in embedded systems or specialized devices using this hardware and driver combination. While the vulnerability does not enable remote code execution or privilege escalation, denial of service through kernel instability could affect critical infrastructure or industrial control systems relying on these devices. The impact is more pronounced in environments where LPC32xx-based Linux systems are deployed at scale or in critical roles. Since no known exploits exist, the immediate threat level is low, but unpatched systems remain at risk of stability issues. European organizations with embedded Linux devices or industrial equipment using this driver should assess exposure and prioritize patching to maintain operational continuity.

Mitigation Recommendations

To mitigate CVE-2022-49712, organizations should: 1) Identify all Linux systems running the affected kernel versions with the lpc32xx_udc USB gadget driver enabled, focusing on embedded and industrial devices. 2) Apply the official Linux kernel patches that add the missing of_node_put() call to fix the reference count leak. If official patches are not yet available, consider backporting the fix from the latest kernel source. 3) Monitor system logs and kernel metrics for signs of resource exhaustion or instability that could indicate the leak is impacting operations. 4) Implement proactive kernel update policies for embedded and industrial Linux devices to ensure timely application of security fixes. 5) Where possible, isolate affected devices from critical network segments to reduce risk of cascading failures. 6) Engage with hardware and device vendors to confirm patch availability and deployment timelines for affected platforms. 7) Conduct thorough testing of patched kernels in staging environments before production rollout to avoid regressions. These steps go beyond generic advice by focusing on embedded device identification, patch backporting, and operational monitoring specific to this kernel-level resource leak.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Linux
Date Reserved
2025-02-26T02:21:30.444Z
Cisa Enriched
false
Cvss Version
null
State
PUBLISHED

Threat ID: 682d982cc4522896dcbe48fc

Added to database: 5/21/2025, 9:09:00 AM

Last enriched: 6/30/2025, 12:39:52 AM

Last updated: 7/30/2025, 4:19:07 AM

Views: 14

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats