Fix Compaction Sysfs File Leak in Linux Kernel
Summary
GSD-2022-1003580: drivers/base/node.c: fix compaction sysfs file leak. Affects Kernel versions >= ed4a6d7f0676db50b5023cc01f6cda82a2f2a307, < d8a5bdc767f17281da648555cdbd286f98fd98ee. No fix is published. 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 a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for managing hardware resources, process scheduling, and device drivers. The 'drivers/base/node.c' file in the Linux Kernel is responsible for handling node-related operations, including memory compaction. Memory compaction is a process that aims to reduce fragmentation and improve memory utilization. However, a vulnerability exists in the 'node.c' file that can lead to a sysfs file leak.
Vulnerability Detail
The vulnerability in 'drivers/base/node.c' allows for a sysfs file leak. Sysfs is a virtual file system in Linux that provides a structured view of kernel data and devices. When memory compaction is performed, the 'node.c' file creates a sysfs file to track the progress. However, due to a coding error, the file is not properly closed and released after the compaction process completes. This can result in a resource leak, consuming system resources and potentially leading to a denial-of-service condition. The impact and attack plausibility of this vulnerability have not been proven yet.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by keeping their Linux Kernel up to date with the latest security patches.
Conclusion
The 'drivers/base/node.c' file in the Linux Kernel is vulnerable to a sysfs file leak. This vulnerability can potentially lead to resource exhaustion and a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.10.121 or later to mitigate this issue. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The Linux Kernel is an open-source operating system kernel that provides essential functionality for managing hardware resources, process scheduling, and device drivers.
'drivers/base/node.c' is a file in the Linux Kernel responsible for handling node-related operations, including memory compaction.
Memory compaction is a process that aims to reduce fragmentation and improve memory utilization in the Linux Kernel.
Sysfs is a virtual file system in Linux that provides a structured view of kernel data and devices.
A sysfs file leak refers to a situation where a sysfs file is not properly closed and released, leading to a resource leak and potential denial-of-service condition.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.