In the Linux kernel, the following vulnerability has been resolved: staging: vchiqarm: Fix possible NPR of keep-alive thread In case vchiqplatformconnstatechanged() is never called or fails before driver removal, kathread won't be a valid pointer to a taskstruct. So do the necessary checks before calling kthreadstop to avoid a crash.