CVE-2022-50148Published Jun 18, 2025 · Jun 18Updated Oct 28
kernfs: fix potential NULL dereference in __kernfs_remove
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.18.185.19.26.0In 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)
From the CVE record · Linux
The Linux kernel's __kernfs_remove function can potentially dereference a NULL pointer when lockdep is enabled. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Teams running Linux kernels with lockdep enabled should check their versions; affected versions are not specified.