Vulnerability in gfs2: Use-after-free in gfs2_glock_shrink_scan

Kernel Updated 02 Oct 2025

Summary

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

GSD-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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The gfs2 package is a part of the Linux Kernel ecosystem and provides support for the GFS2 (Global File System 2) file system. GFS2 is a shared-disk file system designed for use in cluster environments. It allows multiple nodes to concurrently access the same file system, providing high availability and scalability. The gfs2_glock_shrink_scan function is responsible for scanning and shrinking glocks (GFS2 lock structures) in the file system. However, a use-after-free vulnerability has been discovered in this function.

Vulnerability Detail

The use-after-free vulnerability in gfs2_glock_shrink_scan arises when the function attempts to access a glock that has already been freed. This can lead to a variety of issues, including crashes, privilege escalation, and potential remote code execution. An attacker could potentially exploit this vulnerability by carefully crafting a malicious input that triggers the use-after-free 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 ensuring that their systems are running the latest version of the Linux Kernel. Additionally, it is recommended to follow security best practices, such as regularly updating software and implementing proper access controls.

Conclusion

In conclusion, the gfs2 package in the Linux Kernel is vulnerable to a use-after-free issue in the gfs2_glock_shrink_scan function. This vulnerability can have serious consequences, including crashes, privilege escalation, and potential remote code execution. It is crucial to update the Linux Kernel to the fixed version (v5.12.12) to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

GFS2 (Global File System 2) is a shared-disk file system designed for use in cluster environments. It allows multiple nodes to concurrently access the same file system, providing high availability and scalability.

A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to various issues, including crashes, privilege escalation, and potential remote code execution.

An attacker could potentially exploit this vulnerability by carefully crafting a malicious input that triggers the use-after-free condition. However, the impact and attack plausibility of this vulnerability have not been proven yet.

Yes, the use-after-free vulnerability in gfs2_glock_shrink_scan has been fixed in Linux Kernel version v5.12.12.

To protect your system, it is recommended to update the Linux Kernel to the fixed version (v5.12.12). Obtain the updated kernel source code from the official Linux Kernel repository and compile it for your system. Alternatively, wait for your Linux distribution to provide an updated kernel package.

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