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-1001609: md: fix a lock order reversal in md_alloc. Affects Kernel versions >= b0140891a8cea36469f58d23859e599b1122bd37, < 2b5befcd404522caae0df7e085b699122f5196a3. 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, responsible for managing various system resources and providing an interface between hardware and software. It includes the core functionalities required for the system to function properly. One of the components within the Kernel package is md_alloc, which is responsible for allocating memory for metadata structures in the Linux software RAID subsystem. This vulnerability specifically affects the md_alloc component.

Vulnerability Detail

The lock order reversal vulnerability in md_alloc arises from a flaw in the locking mechanism. When acquiring locks, the order in which they are obtained is crucial to prevent deadlocks. However, due to an incorrect lock order, a deadlock can occur in certain scenarios. An attacker could potentially exploit this vulnerability to cause a denial of service (DoS) condition or execute arbitrary code with elevated privileges. The impact and attack plausibility of this vulnerability have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel package to version v5.4.150 or later. This update includes the necessary patch to address the lock order reversal issue in md_alloc. Users can obtain the updated version from the official Linux Kernel repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/.

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 available for this vulnerability at the moment. It is advised to apply the recommended fix by updating the Linux Kernel package.

Conclusion

The lock order reversal vulnerability in md_alloc within the Kernel package can potentially lead to a denial of service (DoS) condition or arbitrary code execution. It is crucial to update the Linux Kernel package to version v5.4.150 or later to address this vulnerability. No known exploits have been reported, but it is recommended to apply the fix as a precautionary measure. For additional support and assistance, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability could range from a denial of service (DoS) condition to potential execution of arbitrary code with elevated privileges.

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 and the playground will provide real-time alerts for open-source vulnerabilities, including this one.

No known exploits for this vulnerability have been reported at the moment. However, it is important to apply the recommended fix to mitigate any potential risks.

While it is technically possible to manually apply the patch to fix this vulnerability, it is recommended to update the Linux Kernel package to the latest version instead. This ensures that all necessary fixes and improvements are included.

For further support and assistance with vulnerability remediation, you can reach out to info@devnack.com. The Devnack team will be able to provide guidance and help address any concerns or questions you may have.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel package to version v5.4.150 or later. This update includes the necessary patch to address the lock order reversal issue in md_alloc. Users can obtain the updated version from the official Linux Kernel repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.