CVE-2022-50148

Source
https://cve.org/CVERecord?id=CVE-2022-50148
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50148.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50148
Downstream
Published
2025-06-18T11:03:08.462Z
Modified
2026-03-12T03:26:13.369307Z
Summary
kernfs: fix potential NULL dereference in __kernfs_remove
Details

In the Linux kernel, the following vulnerability has been resolved:

kernfs: fix potential NULL dereference in _kernfsremove

When lockdep is enabled, lockdepassertheld_write would cause potential NULL pointer dereference.

Fix the following smatch warnings:

fs/kernfs/dir.c:1353 _kernfsremove() warn: variable dereferenced before check 'kn' (see line 1346)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50148.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
393c3714081a53795bbff0e985d24146def6f57f
Fixed
b871986d9d3071f5082664ac274d93f08db257cd
Fixed
4a9f35b8729c5bf13ea671c908c17ed74c48fc50
Fixed
72b5d5aef246a0387cefa23121dd90901c7a691a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50148.json"