Memory Leak Vulnerability in Linux Kernel: pinctrl Intel Device Node Handling
Summary
DEBIAN-CVE-2024-50197: In the Linux kernel, the following vulnerability has been resolved: pinctrl: intel: platform: fix error path in device_for_each_child_node() The device_for_each_child_node() loop requires calls to fwnode_handle_put() upo... Affects linux versions < 6.11.5-1. Fixed in 6.11.5-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. It supports a wide range of hardware architectures and is known for its stability and performance. The specific vulnerability affects the pinctrl subsystem, which manages pin control for various devices, particularly Intel platforms. This vulnerability can lead to memory leaks if not addressed, impacting system performance and reliability.
Vulnerability Detail
In the Linux kernel, a vulnerability has been identified in the pinctrl subsystem related to the function device_for_each_child_node(). The issue arises when the function fails to properly manage reference counts for child nodes during early return scenarios. Specifically, the function lacks a call to fwnode_handle_put(), which is necessary to decrement the reference count and prevent memory leaks. This oversight can lead to increased memory usage and potential system instability if the error path is triggered.
How To Fix
Minimum fixed version
6.11.5-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch as soon as it is available.
Conclusion
The identified vulnerability in the Linux kernel's pinctrl subsystem poses a risk of memory leaks due to improper reference counting. Users are advised to update to the patched version 6.11.5-1 to mitigate this issue. Regular monitoring and timely updates are essential for maintaining system security and performance.
See every vulnerability recorded for linux →
FAQ
The vulnerability is a memory leak issue in the Linux kernel's pinctrl subsystem, specifically related to improper reference counting in device node handling.
You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without requiring installation.
If exploited, this vulnerability can lead to increased memory usage and system instability, potentially affecting the overall performance of the operating system.
Yes, a patch is available in version 6.11.5-1 of the Linux kernel. Users are encouraged to update to this version to mitigate the risk.
To secure your system, update your Linux kernel to the patched version as soon as possible and monitor for any further updates or advisories.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.