CVE-2022-50367: Linux kernel NILFS uninitialized-pointer free in nilfs_mdt_destroy
- Vendor
- Linux
CVE-2022-50367 is a memory-safety vulnerability in Linux kernel inode initialization and NILFS cleanup. During alloc_inode(), inode_init_always() can return -ENOMEM when security_inode_alloc() fails, leaving inode->i_private uninitialized. Subsequently, nilfs_is_metadata_file_inode() can incorrectly identify the inode as a metadata-file inode, causing nilfs_free_inode() to invoke nilfs_mdt_destroy(). This cleanup attempts to free the uninitialized pointer and can cause kernel crashes, including use-after-free conditions and general protection faults.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The invalid cleanup can cause kernel memory corruption and crashes, resulting in denial of service for the affected system. Arbitrary code execution, privilege escalation, and information disclosure are not established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until the kernel is patched, restrict untrusted access to systems using NILFS and consider disabling NILFS support if it is not required. Monitor for abnormal kernel crashes. These measures do not replace the kernel update.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update addressing CVE-2022-50367 and reboot into the updated kernel. The upstream fix moves security_inode_alloc() to immediately before this_cpu_inc(nr_inodes), ensuring initialization occurs before the security allocation failure can trigger cleanup. Fixed vendor releases include RHEL 8 kernel 4.18.0-553.83.1.el8_10, RHEL 9.4 kernel 5.14.0-427.97.1.el9_4, and RHEL 7 ELS kernel 3.10.0-1160.144.1.el7; use the update appropriate to the deployed product and support stream.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-50367 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2022-50367 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2022-50367?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2022-50367.
- Is there a patch for CVE-2022-50367?
- Install a vendor-supported kernel update addressing CVE-2022-50367 and reboot into the updated kernel. The upstream fix moves security_inode_alloc() to immediately before this_cpu_inc(nr_inodes), ensuring initialization occurs before the security allocation failure can trigger cleanup.
- What products are affected by CVE-2022-50367?
- Linux Kernel.
- How severe is CVE-2022-50367?
- CVE-2022-50367 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.25% (10th percentile) as of Oct 25, 2026.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.