CVE-2021-47342: ext4: fix possible UAF when remounting r/o a mmp-protected file system
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix possible UAF when remounting r/o a mmp-protected file system
After commit 618f003199c6 ("ext4: fix memory leak in
ext4_fill_super"), after the file system is remounted read-only, there
is a race where the kmmpd thread can exit, causing sbi->s_mmp_tsk to
point at freed memory, which the call to ext4_stop_mmpd() can trip
over.
Fix this by only allowing kmmpd() to exit when it is stopped via
ext4_stop_mmpd().
Bug-Report-Link: <20210629143603.2166962-1-yebin10@huawei.com>
Security readout for executives and security teams
Plain-English summary
CVE-2021-47342 is a Linux kernel ext4 bug that can leave a pointer to freed memory when an MMP-protected filesystem is remounted read-only. The public record does not provide CVSS, business impact, or confirmed exploit activity.
Executive priority
Treat this as a kernel maintenance item unless local evidence shows ext4 MMP use on critical systems. No source-provided severity score or exploitation evidence supports emergency handling.
Technical view
The issue is a possible use-after-free in ext4 MMP handling. After a prior ext4_fill_super change, the kmmpd thread could exit during read-only remount, leaving sbi->s_mmp_tsk pointing to freed memory before ext4_stop_mmpd() uses it. Stable kernel commits change kmmpd exit behavior.
Likely exposure
Exposure appears limited to Linux systems using ext4 filesystems with multiple-mount protection where affected kernel code is present. The bundle lists Linux kernel commit identifiers and version 5.10.51, but does not map distro packages or configurations.
Exploitation context
The provided sources do not show active exploitation, and the CVE is not listed as KEV. The record describes a race condition in kernel filesystem handling, not a remote attack path or public exploit.
Researcher notes
The core condition is a race between read-only remount and kmmpd lifecycle management, causing a stale task pointer. Impact details, exploitability constraints, and affected downstream package ranges are not provided in the bundle.
Mitigation direction
Check vendor kernel advisories for CVE-2021-47342 coverage.
Apply Linux kernel updates that include the referenced stable ext4 fixes.
Prioritize systems using ext4 MMP on shared or sensitive storage.
Avoid assuming fixed status from upstream version alone; verify distro backports.
Validation and detection
Inventory Linux systems using ext4 with MMP enabled.
Map deployed kernel packages to vendor fixes or referenced stable commits.
Review operational workflows that remount ext4 filesystems read-only.
Check kernel logs for ext4 or MMP related crashes or warnings.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47342 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.