All reports
Medium

kernel: fs: fix UAF/GPF bug in nilfs_mdt_destroy

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-50367

Probability of exploitation in the next 30 days: 0.24%

FIRST EPSS · 2026-11-24

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)

A flaw was found in the Linux kernel's NILFS2 file system. A local user can cause a Denial of Service (DoS) or memory corruption by triggering an allocation failure during file system object initialization. Due to improper cleanup error handling, the kernel attempts to free uninitialized memory, leading to kernel instability and system crashes.