Local kernel crash via pre-check NULL dereference
Published Jun 18, 2025 · Updated May 11, 2026
A NULL pointer dereference in Linux kernfs allows local users to crash the kernel during node removal when lockdep is enabled. In fs/kernfs/dir.c, __kernfs_remove dereferences its kn argument for a write-lock assertion before checking whether kn is NULL. The condition requires lock dependency checking, and the documented consequence is an availability-only kernel crash.
Summary
What happened
A NULL pointer dereference in Linux kernfs allows local users to crash the kernel during node removal when lockdep is enabled. In fs/kernfs/dir.c, __kernfs_remove dereferences its kn argument for a write-lock assertion before checking whether kn is NULL. The condition requires lock dependency checking, and the documented consequence is an availability-only kernel crash.
The record
- CVE
- CVE-2022-50148
- Published
- Jun 18, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-476, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 18, 2025CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=393c3714081a53795bbff0e985d24146def6f57f <4a9f35b8729c5bf13ea671c908c17ed74c48fc50
- Affected versionversion=393c3714081a53795bbff0e985d24146def6f57f <72b5d5aef246a0387cefa23121dd90901c7a691a
- Affected versionversion=393c3714081a53795bbff0e985d24146def6f57f <b871986d9d3071f5082664ac274d93f08db257cd
- Affected versionversion=5.17
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo