Use-after-free vulnerability in gfs2_glock_shrink_scan in Kernel

Kernel Updated 02 Oct 2025

Summary

30/06/2021
N/A
No i
Unrated
Not published

UVI-2021-1001051: gfs2: Fix use-after-free in gfs2_glock_shrink_scan. Affects Kernel versions < e87ef30fe73e7e10d2c85bdcc778dcec24dca553. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The gfs2_glock_shrink_scan function is a part of the GFS2 (Global File System 2) module in the Kernel, which is responsible for managing the locking of GFS2 file system resources. This vulnerability specifically affects the gfs2_glock_shrink_scan function and can lead to a use-after-free condition.

Vulnerability Detail

The use-after-free vulnerability in gfs2_glock_shrink_scan occurs when the function improperly handles the freeing of a memory object that is still being referenced. This can result in a situation where an attacker can exploit the freed memory object, leading to potential memory corruption or arbitrary code execution. The impact and attack plausibility of this vulnerability have not been proven yet, but it is essential to address it to ensure the security and stability of the system.

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, applying the recommended fix by updating the Kernel to the latest version is the best course of action to address the issue.

Conclusion

The use-after-free vulnerability in gfs2_glock_shrink_scan in the Kernel can potentially lead to memory corruption or arbitrary code execution. It is crucial to update the Kernel to version v5.12.12 or later to mitigate this vulnerability. Regularly updating the Kernel and following security best practices are essential to ensure the overall security and stability of the system. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven, but it has the potential to lead to memory corruption or arbitrary code execution.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities.

At the time of this report, there is no known exploit for this vulnerability. However, it is crucial to apply the recommended fix to mitigate any potential risks.

There may be other vulnerabilities in the Kernel that are not specifically mentioned in this report. It is advisable to regularly update the Kernel and follow security best practices to minimize the risk of any potential vulnerabilities.

You can find more information about this vulnerability in the source database of the Cloud Security Alliance's GSD Database. The specific source for this vulnerability is available at: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/UVI-2021-1001051.json

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback