CVE-2022-50367: fs: fix UAF/GPF bug in nilfs_mdt_destroy
In the Linux kernel, the following vulnerability has been resolved:
fs: fix UAF/GPF bug in nilfs_mdt_destroy
In alloc_inode, inode_init_always() could return -ENOMEM if
security_inode_alloc() fails, which causes inode->i_private
uninitialized. Then nilfs_is_metadata_file_inode() returns
true and nilfs_free_inode() wrongly calls nilfs_mdt_destroy(),
which frees the uninitialized inode->i_private
and leads to crashes(e.g., UAF/GPF).
Fix this by moving security_inode_alloc just prior to
this_cpu_inc(nr_inodes)
Security readout for executives and security teams
Plain-English summary
CVE-2022-50367 is a high-severity Linux kernel memory-safety flaw in NILFS metadata inode cleanup. A local user could trigger kernel memory corruption conditions; the description specifically notes crashes such as use-after-free or general protection faults. This is not listed as known exploited in KEV based on the provided data.
Executive priority
Treat as a high-priority routine kernel patching item, especially for multi-user and workload-dense Linux systems. There is no cited evidence of active exploitation, so emergency response is not indicated from the provided sources alone.
Technical view
The flaw occurs when inode_init_always() fails after security_inode_alloc(), leaving inode->i_private uninitialized. NILFS metadata inode detection can then cause nilfs_free_inode() to call nilfs_mdt_destroy() on that uninitialized pointer, causing UAF/GPF. CVSS 3.1 is 7.8 with local attack vector, low complexity, low privileges, and no user interaction.
Likely exposure
Exposure is limited to Linux systems running affected kernel versions or vendor kernels without the referenced stable fixes. Risk is higher on systems where untrusted local users, workloads, or containers can exercise kernel filesystem paths. Distribution backports may change version-based conclusions, so package-level vendor status matters.
Exploitation context
The provided sources do not show active exploitation, and KEV status is false. Exploitation requires local privileges according to the CVSS vector. Public details describe the bug and fixes, but do not establish a weaponized exploit or remote attack path.
Researcher notes
The record maps to CWE-416 and Linux kernel stable commits. The affected-version data is broad and commit-based, so exact exposure should be confirmed through vendor kernel trees and backport metadata. Avoid assuming upstream version numbers alone reflect distro risk.
Mitigation direction
Apply a Linux vendor kernel update that includes the upstream stable fix commits.
Check distribution advisories for CVE-2022-50367 package status and backport notes.
Prioritize shared servers, developer workstations, and container hosts with untrusted local workloads.
Reboot systems after kernel updates to ensure the fixed kernel is running.
Validation and detection
Inventory running kernel versions across Linux assets.
Compare installed kernel packages against vendor advisories for CVE-2022-50367.
Verify whether applied kernels include the referenced upstream stable commits or vendor backports.
Confirm hosts rebooted into the updated kernel after patching.
Review vulnerability scanner findings for distro backport awareness before accepting version-only results.
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.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
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.
1CVSS vectors
3Timeline events
1ADP providers
10Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.