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-1000972: gfs2: Fix use-after-free in gfs2_glock_shrink_scan. Affects Kernel versions < a61156314b66456ab6a291ed5deba1ebd002ab3c. 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 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 →

Share this vulnerability

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.

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