CVE-2022-50266
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/09/2025
Last modified:
15/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
kprobes: Fix check for probe enabled in kill_kprobe()<br />
<br />
In kill_kprobe(), the check whether disarm_kprobe_ftrace() needs to be<br />
called always fails. This is because before that we set the<br />
KPROBE_FLAG_GONE flag for kprobe so that "!kprobe_disabled(p)" is always<br />
false.<br />
<br />
The disarm_kprobe_ftrace() call introduced by commit:<br />
<br />
0cb2f1372baa ("kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler")<br />
<br />
to fix the NULL pointer reference problem. When the probe is enabled, if<br />
we do not disarm it, this problem still exists.<br />
<br />
Fix it by putting the probe enabled check before setting the<br />
KPROBE_FLAG_GONE flag.



