Lock Order Reversal Vulnerability in md_alloc

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001569: md: fix a lock order reversal in md_alloc. Affects Kernel versions >= b0140891a8cea36469f58d23859e599b1122bd37, < 906b4dcc180808f0ba74ec1e07a5cf708463bc48. 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 package is a critical component of the Linux operating system. It provides the core functionality and interfaces for the system's hardware and software components. The md_alloc function in the Kernel is responsible for allocating memory for metadata structures used by multiple devices. This vulnerability in md_alloc involves a lock order reversal, which can lead to potential security risks.

Vulnerability Detail

The lock order reversal vulnerability in md_alloc occurs when locks are acquired in an incorrect order, potentially resulting in deadlocks or inconsistent data access. An attacker could exploit this vulnerability to cause a denial-of-service (DoS) condition or gain unauthorized access to sensitive information. The vulnerability was introduced in version v3.0 of the Linux Kernel and is fixed in version v4.19.209 by commit 906b4dcc180808f0ba74ec1e07a5cf708463bc48.

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 crucial to apply the fix by updating the Linux Kernel to the recommended version.

Conclusion

The lock order reversal vulnerability in md_alloc can pose significant security risks to Linux systems. It is crucial to update the Linux Kernel to the fixed version to mitigate these risks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can lead to potential security risks, including denial-of-service (DoS) attacks and unauthorized access to sensitive information.

You can use the Vulert 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 alert you in real-time if the vulnerability is present.

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

Yes, this vulnerability can be exploited remotely if an attacker can gain access to the affected system.

The recommended solution is to update the Linux Kernel to the fixed version. However, if updating is not feasible, you can consult with security experts or consider implementing additional security measures to mitigate the risk.

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