CVE-2022-50367
published 2025-09-17CVE-2022-50367: 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…
PriorityP337high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.21%
10.8th percentile
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
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.0.2-1 (bookworm) | linux 6.0.2-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < d1ff475d7c83289d0a7faef346ea3bbf90818bad | d1ff475d7c83289d0a7faef346ea3bbf90818bad |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < c0aa76b0f17f59dd9c9d3463550a2986a1d592e4 | c0aa76b0f17f59dd9c9d3463550a2986a1d592e4 |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < ec2aab115eb38ac4992ea2fcc2a02fbe7af5cf48 | ec2aab115eb38ac4992ea2fcc2a02fbe7af5cf48 |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 70e4f70d54e0225f91814e8610477d65f33cefe4 | 70e4f70d54e0225f91814e8610477d65f33cefe4 |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 1e555c3ed1fce4b278aaebe18a64a934cece57d8 | 1e555c3ed1fce4b278aaebe18a64a934cece57d8 |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 64b79e632869ad3ef6c098a4731d559381da1115 | 64b79e632869ad3ef6c098a4731d559381da1115 |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 81de80330fa6907aec32eb54c5619059e6e36452 | 81de80330fa6907aec32eb54c5619059e6e36452 |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2a96b532098284ecf8e4849b8b9e5fc7a28bdee9 | 2a96b532098284ecf8e4849b8b9e5fc7a28bdee9 |
| linux | linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2e488f13755ffbb60f307e991b27024716a33b29 | 2e488f13755ffbb60f307e991b27024716a33b29 |
| linux | linux_kernel | < 4.9.331 | 4.9.331 |
| linux | linux_kernel | >= 0 < 5.10.148-1 | 5.10.148-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 4.10 < 4.14.296 | 4.14.296 |
| linux | linux_kernel | >= 4.15 < 4.19.262 | 4.19.262 |
| linux | linux_kernel | >= 4.20 < 5.4.218 | 5.4.218 |
| linux | linux_kernel | >= 5.11 < 5.15.73 | 5.15.73 |
| linux | linux_kernel | >= 5.16 < 5.19.15 | 5.19.15 |
| linux | linux_kernel | >= 5.5 < 5.10.148 | 5.10.148 |
| linux | linux_kernel | >= 6.0 < 6.0.1 | 6.0.1 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: fs: fix UAF/GPF bug in nilfs_mdt_destroy
vendor_redhat·2025-09-17·CVSS 7.8
CVE-2022-50367 [HIGH] CWE-416 kernel: fs: fix UAF/GPF bug in nilfs_mdt_destroy
kernel: 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)
Statement: This patch fixes a use-after-free/GPF bug in the NILFS2 metadata handling. When security_inode_alloc() failed, an uninitialized inode->i_private pointer could later be freed by nilfs_mdt_destroy(), leading to memory corruptio
Debian
CVE-2022-50367: linux - In the Linux kernel, the following vulnerability has been resolved: fs: fix UAF...
vendor_debian·2022·CVSS 7.8
CVE-2022-50367 [HIGH] CVE-2022-50367: linux - In the Linux kernel, the following vulnerability has been resolved: fs: fix UAF...
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)
Scope: local
bookworm: resolved (fixed in 6.0.2-1)
bullseye: resolved (fixed in 5.10.148-1)
forky: resolved (fixed in 6.0.2-1)
sid: resolved (fixed in 6.0.2-1)
trixie: resolved (fixed in 6.0.2-1)
OSV
CVE-2022-50367: 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
osv·2025-09-17·CVSS 7.8
CVE-2022-50367 [HIGH] CVE-2022-50367: 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
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)
GHSA
GHSA-4hcm-79j9-x472: 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() cou
ghsa_unreviewed·2025-09-17
CVE-2022-50367 [HIGH] CWE-416 GHSA-4hcm-79j9-x472: 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() cou
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)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/1e555c3ed1fce4b278aaebe18a64a934cece57d8https://git.kernel.org/stable/c/2a96b532098284ecf8e4849b8b9e5fc7a28bdee9https://git.kernel.org/stable/c/2e488f13755ffbb60f307e991b27024716a33b29https://git.kernel.org/stable/c/64b79e632869ad3ef6c098a4731d559381da1115https://git.kernel.org/stable/c/70e4f70d54e0225f91814e8610477d65f33cefe4https://git.kernel.org/stable/c/81de80330fa6907aec32eb54c5619059e6e36452https://git.kernel.org/stable/c/c0aa76b0f17f59dd9c9d3463550a2986a1d592e4https://git.kernel.org/stable/c/d1ff475d7c83289d0a7faef346ea3bbf90818badhttps://git.kernel.org/stable/c/ec2aab115eb38ac4992ea2fcc2a02fbe7af5cf48
2025-09-17
Published