CVE-2022-50148: kernfs: fix potential NULL dereference in __kernfs_remove
In the Linux kernel, the following vulnerability has been resolved:
kernfs: fix potential NULL dereference in kernfsremove
When lockdep is enabled, lockdepassertheldwrite 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)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.0.2-1
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue affects the Linux kernel, including Debian's linux package, when lockdep is enabled. The provided data does not identify affected kernel versions or configurations beyond lockdep.
What access does an attacker need to exploit it?
The severity vector indicates local access, low attack complexity, low privileges, and no user interaction. The provided data does not describe a specific exploitation path or required local capability.
What is the likely impact?
The reported flaw is a potential NULL pointer dereference in __kernfs_remove. The supplied severity vector indicates an availability impact only, with no stated confidentiality or integrity impact.