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

GSD-2021-1000911: gfs2: Fix use-after-free in gfs2_glock_shrink_scan. Affects Kernel versions < 86fd5b27db743a0ce0cc245e3a34813b2aa6ec1d. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that provides core functionality and acts as an interface between hardware and software. It manages system resources, facilitates communication between different components, and enables the execution of user programs. The gfs2_glock_shrink_scan function in the Kernel is responsible for shrinking the glock cache, which is used to manage GFS2 file system locks. GFS2 is a cluster file system that allows multiple nodes to access shared storage concurrently. This vulnerability in gfs2_glock_shrink_scan can lead to a use-after-free condition, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service.

Vulnerability Detail

The use-after-free vulnerability in gfs2_glock_shrink_scan occurs when the function attempts to shrink the glock cache while a concurrent operation is still referencing a glock object. This can result in the freeing of the object while it is still being used, leading to a use-after-free scenario. An attacker may be able to exploit this vulnerability by carefully timing their actions to trigger the use-after-free condition and gain unauthorized access or disrupt the system. The impact and attack plausibility of this vulnerability have not been proven, 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. It is advised to apply the fix by updating the Linux Kernel to the recommended version.

Conclusion

The use-after-free vulnerability in gfs2_glock_shrink_scan in the Kernel can have serious security implications. It is crucial to update the Linux Kernel to the recommended version to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system that provides core functionality and acts as an interface between hardware and software.

gfs2_glock_shrink_scan is a function in the Kernel responsible for shrinking the glock cache, which is used to manage GFS2 file system locks.

A use-after-free vulnerability occurs when a program frees a memory object while it is still being used, potentially leading to unexpected behavior or security issues.

The impact of this vulnerability is not proven, but it could potentially allow an attacker to execute arbitrary code or cause a denial-of-service.

To fix this vulnerability, update the Linux Kernel to version v5.4.127 or later, which includes the necessary patch.

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