Vulnerability in Kernel: blk-cgroup UAF

Kernel Updated 02 Oct 2025

Summary

19/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001606: blk-cgroup: fix UAF by grabbing blkcg lock before destroying blkg pd. Affects Kernel versions < d12ddd843f1877de1f7dd2aeea4907cf9ff3ac08. 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 Kernel is a crucial component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The blk-cgroup subsystem within the Kernel is responsible for controlling and monitoring block devices. It allows for resource allocation and tracking of I/O operations on block devices. However, a vulnerability has been identified in the blk-cgroup subsystem that could lead to a use-after-free (UAF) condition.

Vulnerability Detail

The identified vulnerability in the blk-cgroup subsystem arises from a failure to acquire the necessary lock before destroying a block group (blkg) per-device (pd) structure. This UAF vulnerability could potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. By manipulating the timing of the destruction of the blkg pd structure, an attacker could gain control over freed memory and potentially execute malicious code. 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. The recommended approach is to apply the fix provided in the latest version of the Linux Kernel.

Conclusion

The identified vulnerability in the Kernel's blk-cgroup subsystem could potentially lead to arbitrary code execution or a denial-of-service condition. It is crucial to update to the latest version of the Linux Kernel (v5.4.150 or later) 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 impact of this vulnerability could range from arbitrary code execution to a denial-of-service condition, depending on the attacker's ability to exploit the use-after-free condition.

By manipulating the timing of the destruction of the blkg pd structure, an attacker could gain control over freed memory and potentially execute arbitrary code.

There is no evidence of this vulnerability being exploited in the wild at the time of discovery.

The vulnerability is present in versions of the Linux Kernel prior to v5.4.150. It has been fixed in this version and subsequent releases.

You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities, including this one.

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