What’s Vulnerable › Vulnerabilities
CVE-2022-50266: kprobes: Fix check for probe enabled in kill_kprobe()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-15 · updated 2026-06-17
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: kprobes: Fix check for probe enabled in kill_kprobe() In kill_kprobe(), the check whether disarm_kprobe_ftrace() needs to be called always fails. This is because before that we set the KPROBE_FLAG_GONE flag for kprobe so that "!kprobe_disabled(p)" is always false. The disarm_kprobe_ftrace() call introduced by commit: 0cb2f1372baa ("kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler") to fix the NULL pointer reference problem. When the probe is enabled, if we do not disarm it, this problem still exists. Fix it by putting the probe enabled check before setting the KPROBE_FLAG_GONE flag.
Affected products
- Linux kernel: from 4.4.238 before 4.5; from 4.9.238 before 4.10; from 4.14.200 before 4.15; from 4.19.149 before 4.20; from 5.4.69 before 5.5; from 5.8.13 before 5.9 — fixed in 4.10, 4.15, 4.20, 4.5, 5.5, 5.9
How to fix
Upgrade to a fixed version: Linux kernel 4.10, 4.15, 4.20, 4.5. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/0c76ef3f26d5ef2ac2c21b47e7620cff35809fbb
- https://git.kernel.org/stable/c/c909985dd0c0f74b61e3f8f0e04bf8aa9c8b97c7
- https://git.kernel.org/stable/c/f20a067f13106565816b4b6a6b665b2088a63824
Get alerted when CVE-2022-50266 or the next vulnerability affects your stack