Lock Order Reversal Vulnerability in md_alloc of Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001541: md: fix a lock order reversal in md_alloc. Affects Kernel versions >= b0140891a8cea36469f58d23859e599b1122bd37, < 9252a5f39df073d364d72662cb8a45dc2f0da328. 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 Penetration testing for web, API and mobile 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 critical component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The md_alloc function in the Kernel is responsible for allocating memory for metadata structures used in software RAID configurations. This vulnerability in md_alloc involves a lock order reversal, which can lead to potential security issues.

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. Attackers may exploit this vulnerability to cause denial of service (DoS) conditions or gain unauthorized access to sensitive information. The vulnerability was introduced in version v3.0 of the Linux Kernel and was fixed in version v4.14.249.

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

As a workaround, users can apply patches or backports provided by the Linux distribution they are using. These patches may address the lock order reversal vulnerability in md_alloc without requiring a complete Kernel update. Users should consult the documentation or support channels of their specific Linux distribution for guidance on applying patches or backports.

Conclusion

The lock order reversal vulnerability in md_alloc of the Kernel can pose security risks, potentially leading to deadlocks, data inconsistencies, denial of service (DoS) conditions, or unauthorized access. It is crucial to update the Linux Kernel to version v4.14.249 or later to mitigate this vulnerability. Users can also consider applying patches or backports provided by their Linux distribution. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially lead to deadlocks or inconsistent data, causing denial of service (DoS) conditions or unauthorized access to sensitive information.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it for open-source vulnerabilities, including this specific vulnerability.

At the time of this report, there is no known public exploit for this vulnerability. However, it is important to promptly apply the recommended fixes to mitigate the risk.

Yes, you can apply patches or backports provided by your Linux distribution to address the vulnerability without updating the entire Kernel. Consult the documentation or support channels of your Linux distribution for guidance on applying these patches or backports.

You can refer to the vulnerability details in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001541.json) for more information about this vulnerability, including its timeline and references.

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