CVE-2022-50367

fs: fix UAF/GPF bug in nilfs_mdt_destroy

HIGH
7.8
CVSS Score
Published: September 17, 2025 at 02:56 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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)

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.9.3312.6.12 ≤ v < 4.14.2962.6.12 ≤ v < 4.19.2622.6.12 ≤ v < 4.9.3312.6.12 ≤ v < 5.10.1482.6.12 ≤ v < 5.15.732.6.12 ≤ v < 5.19.152.6.12 ≤ v < 5.4.2182.6.12 ≤ v < 6.0.12.6.12 ≤ v < 6.14.10 ≤ v < 4.14.2964.15 ≤ v < 4.19.2624.20 ≤ v < 5.4.2185.11 ≤ v < 5.15.735.16 ≤ v < 5.19.155.5 ≤ v < 5.10.1486.0 ≤ v < 6.0.11da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 1e555c3ed1fce4b278aaebe18a64a934cece57d8 (fixed)
Vendor states this is fixed in 2a96b532098284ecf8e4849b8b9e5fc7a28bdee9 (fixed)
Vendor states this is fixed in 2e488f13755ffbb60f307e991b27024716a33b29 (fixed)
Vendor states this is fixed in 64b79e632869ad3ef6c098a4731d559381da1115 (fixed)
Vendor states this is fixed in 70e4f70d54e0225f91814e8610477d65f33cefe4 (fixed)
Vendor states this is fixed in 81de80330fa6907aec32eb54c5619059e6e36452 (fixed)
Vendor states this is fixed in c0aa76b0f17f59dd9c9d3463550a2986a1d592e4 (fixed)
Vendor states this is fixed in d1ff475d7c83289d0a7faef346ea3bbf90818bad (fixed)
Vendor states this is fixed in ec2aab115eb38ac4992ea2fcc2a02fbe7af5cf48 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.296 (unaffected)
Vendor states this is fixed in 4.19.262 (unaffected)
Vendor states this is fixed in 4.9.331 (unaffected)
Vendor states this is fixed in 5.10.148 (unaffected)
Vendor states this is fixed in 5.15.73 (unaffected)
Vendor states this is fixed in 5.19.15 (unaffected)
Vendor states this is fixed in 5.4.218 (unaffected)
Vendor states this is fixed in 6.0.1 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card