CVE-2022-50148 Details
Description
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)
A potential NULL pointer dereference vulnerability has been identified in the Linux kernel's kernfs component. This issue arises in the __kernfs_remove function when lockdep is enabled, leading to a situation where lockdep_assert_held_write could cause a NULL pointer dereference. The vulnerability also triggers smatch warnings about a variable being dereferenced before a proper check.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/4a9f35b8729c5bf13ea671c908c17ed74c48fc50 | kernel.org | Patch |
| https://git.kernel.org/stable/c/72b5d5aef246a0387cefa23121dd90901c7a691a | kernel.org | Patch |
| https://git.kernel.org/stable/c/b871986d9d3071f5082664ac274d93f08db257cd | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.17, < 5.18.18 >= 5.19, < 5.19.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 17, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |