CVE-2022-50367
Last modified
CVE-2022-50367 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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). EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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)
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 4.9.331 |
| Linux | Linux Kernel | >= 4.10, < 4.14.296 |
| Linux | Linux Kernel | >= 4.15, < 4.19.262 |
| Linux | Linux Kernel | >= 4.20, < 5.4.218 |
| Linux | Linux Kernel | >= 5.5, < 5.10.148 |
| Linux | Linux Kernel | >= 5.11, < 5.15.73 |
| Linux | Linux Kernel | >= 5.16, < 5.19.15 |
| Linux | Linux Kernel | >= 6.0, < 6.0.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-50367?
How severe is CVE-2022-50367?
How do I fix CVE-2022-50367?
Are you affected by CVE-2022-50367?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
