{"id":"CVE-2022-50148","published":"2025-06-18T11:03:08Z","modified":"2026-05-11T19:13:45Z","title":"kernfs: fix potential NULL dereference in __kernfs_remove","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nkernfs: fix potential NULL dereference in __kernfs_remove\n\nWhen lockdep is enabled, lockdep_assert_held_write would\ncause potential NULL pointer dereference.\n\nFix the following smatch warnings:\n\nfs/kernfs/dir.c:1353 __kernfs_remove() warn: variable dereferenced before check 'kn' (see line 1346)","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00199,"percentile":0.0985,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b871986d9d3071f5082664ac274d93f08db257cd","tags":[]},{"url":"https://git.kernel.org/stable/c/4a9f35b8729c5bf13ea671c908c17ed74c48fc50","tags":[]},{"url":"https://git.kernel.org/stable/c/72b5d5aef246a0387cefa23121dd90901c7a691a","tags":[]}],"priority":{"score":2.0,"factors":[{"name":"EPSS percentile","points":1.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 393c3714081a53795bbff0e985d24146def6f57f, < b871986d9d3071f5082664ac274d93f08db257cd",">= 393c3714081a53795bbff0e985d24146def6f57f, < 4a9f35b8729c5bf13ea671c908c17ed74c48fc50",">= 393c3714081a53795bbff0e985d24146def6f57f, < 72b5d5aef246a0387cefa23121dd90901c7a691a"]},{"vendor":"Linux","product":"Linux","versions":["5.17"]}],"euvd":{"id":"EUVD-2022-55414","exploited":false,"provenance":"source"}}