CVE-2022-50367
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)
How to fix
- linux linux_kernel4.9.331, 4.14.296, 4.19.262, 5.4.218, 5.10.148, 5.15.73, 5.19.15, 6.0.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| linux linux_kernel | v < 4.9.331, 4.10 ≤ v < 4.14.296, 4.15 ≤ v < 4.19.262, 4.20 ≤ v < 5.4.218, 5.5 ≤ v < 5.10.148, 5.11 ≤ v < 5.15.73, 5.16 ≤ v < 5.19.15, 6.0 ≤ v < 6.0.1 | 4.9.331, 4.14.296, 4.19.262, 5.4.218, 5.10.148, 5.15.73, 5.19.15, 6.0.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.