CVE-2022-50367 fs: fix UAF/GPF bug in nilfs_mdt_destroy
설명
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)
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 2.6.12
해결 버전
- 2.6.12 미만
- 4.9.331 이상
- 4.14.296 이상
- 4.19.262 이상
- 5.4.218 이상
- 5.10.148 이상
- 5.15.73 이상
- 5.19.15 이상
외 1개 구간 펼치기
- 6.0.1 이상