CVE-2022-50148

published 18 Jun 2025 · updated 11 May 2026

kernfs: fix potential NULL dereference in __kernfs_remove

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4a9f35b8729c5bf13ea671c908c17ed74c48fc50, Kernel 72b5d5aef246a0387cefa23121dd90901c7a691a and Kernel b871986d9d3071f5082664ac274d93f08db257cd.

In the Linux kernel, the following vulnerability has been resolved: kernfs: fix potential NULL dereference in __kernfs_remove When lockdep is enabled, lockdep_assert_held_write would cause potential NULL pointer dereference. Fix the following smatch warnings: fs/kernfs/dir.c:1353 __kernfs_remove() warn: variable dereferenced before check 'kn' (see line 1346)

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.17, >=393c3714081a53795bbff0e985d24146def6f57f <4a9f35b8729c5bf13ea671c908c17ed74c48fc50, >=393c3714081a53795bbff0e985d24146def6f57f <72b5d5aef246a0387cefa23121dd90901c7a691a, >=393c3714081a53795bbff0e985d24146def6f57f <b871986d9d3071f5082664ac274d93f08db257cd4a9f35b8729c5bf13ea671c908c17ed74c48fc50, 72b5d5aef246a0387cefa23121dd90901c7a691a, b871986d9d3071f5082664ac274d93f08db257cd

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50148 severity on Zeptric[![CVE-2022-50148](https://zeptric.io/badge/cve/CVE-2022-50148.svg)](https://zeptric.io/cve/CVE-2022-50148)