ext4: Fix Use-After-Free Vulnerability When Remounting Read-Only MMP-Protected File System

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

GSD-2021-1001216: ext4: fix possible UAF when remounting r/o a mmp-protected file system. Affects Kernel versions < 7ed572cdf11081f8f9e07abd4bea56a3f2c4edbd. 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 ext4 package is a file system driver for the Linux kernel. It provides support for the fourth extended file system (ext4), which is the default file system for many Linux distributions. The ext4 file system offers improved performance, scalability, and reliability compared to its predecessors. However, a vulnerability has been discovered in the ext4 package that could lead to a use-after-free (UAF) condition when remounting a read-only file system protected by multi-mount protection (MMP).

Vulnerability Detail

The vulnerability arises when attempting to remount a read-only file system that is protected by multi-mount protection. Multi-mount protection is a feature in ext4 that prevents multiple instances of the file system from being mounted simultaneously. The issue occurs due to a use-after-free bug, which can result in a situation where a pointer to freed memory is still accessible. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition. 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 known workaround available for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

The ext4 package in the Linux Kernel is vulnerable to a use-after-free (UAF) condition when remounting a read-only file system protected by multi-mount protection (MMP). This vulnerability has been fixed in the Linux Kernel version v5.13.3. Users are advised to update their kernel to the patched version to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ext4 is a file system driver for the Linux kernel that provides support for the fourth extended file system (ext4). It offers improved performance, scalability, and reliability compared to previous versions.

Multi-mount protection is a feature in ext4 that prevents multiple instances of the file system from being mounted simultaneously. It helps to avoid data corruption and other issues that can arise from concurrent mounts.

A use-after-free vulnerability occurs when a program continues to use a pointer to memory that has already been freed. This can lead to unpredictable behavior, including crashes, data corruption, or the execution of arbitrary code.

If exploited, this vulnerability could allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. However, the actual impact and attack plausibility have not been proven yet.

To fix this vulnerability, update your Linux Kernel to version v5.13.3 or later. Regularly updating the kernel is recommended to ensure the latest security patches are applied.

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