CVE-2022-50148

kernfs: fix potential NULL dereference in __kernfs_remove

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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)

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 393c3714081a53795bbff0e985d24146def6f57f to before b871986d9d3071f5082664ac274d93f08db257cdAffected
  • 393c3714081a53795bbff0e985d24146def6f57f to before 4a9f35b8729c5bf13ea671c908c17ed74c48fc50Affected
  • 393c3714081a53795bbff0e985d24146def6f57f to before 72b5d5aef246a0387cefa23121dd90901c7a691aAffected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.