Use-after-free vulnerability in gfs2_glock_shrink_scan in Kernel
Summary
GSD-2021-1000972: gfs2: Fix use-after-free in gfs2_glock_shrink_scan. Affects Kernel versions < a61156314b66456ab6a291ed5deba1ebd002ab3c. 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 Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces with hardware devices. It manages system resources, including memory, processes, and file systems. The gfs2_glock_shrink_scan function is part of the GFS2 (Global File System 2) module in the Kernel, which is responsible for managing the GFS2 file system. GFS2 is a distributed file system designed for high availability and scalability.
The gfs2_glock_shrink_scan function is used to scan and shrink the GFS2 glock (lock) structures. These structures are used to coordinate access to shared resources within the file system. A use-after-free vulnerability has been identified in this function, which can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition.
Vulnerability Detail
The use-after-free vulnerability in gfs2_glock_shrink_scan occurs when the function incorrectly handles the deallocation of memory used by glock structures. This can result in a situation where a pointer to freed memory is still accessible, leading to potential memory corruption and exploitation by an attacker. By carefully crafting a sequence of operations, an attacker may be able to trigger this vulnerability and execute arbitrary code or disrupt the normal operation of the system.
This vulnerability has been assigned the ID GSD-2021-1000972 and has been fixed in Linux Kernel version v5.10.45 by commit a61156314b66456ab6a291ed5deba1ebd002ab3c.
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 known workaround for this vulnerability. It is highly recommended to apply the official fix by updating the Linux Kernel to the patched version.
Conclusion
The use-after-free vulnerability in gfs2_glock_shrink_scan in the Kernel can lead to memory corruption and potential code execution or denial-of-service attacks. It is crucial to update the Linux Kernel to version v5.10.45 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition on a system running the affected version of the Linux Kernel.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.
The exploitability of this vulnerability depends on various factors, including the system's configuration and network exposure. However, in general, remote exploitation is possible if an attacker can establish a connection to the vulnerable system.
There are no known instances of this vulnerability being exploited in the wild at the time of this report. However, it is always recommended to apply security patches promptly to mitigate the risk of exploitation.
The discovery and reporting of this vulnerability are attributed to the GSD (Global Security Database) project. The GSD is a community-driven effort to identify and document potential security vulnerabilities in open-source software.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.