CVE-2022-50266
kprobes: Fix check for probe enabled in kill_kprobe()
Check your servers for CVE-2022-50266
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50266 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.65% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3031313eb3d549b7ad6f9fbcc52ba04412e3eb9e, before f20a067f13106565816b4b6a6b665b2088a63824 affected from 3031313eb3d549b7ad6f9fbcc52ba04412e3eb9e, before c909985dd0c0f74b61e3f8f0e04bf8aa9c8b97c7 affected from 3031313eb3d549b7ad6f9fbcc52ba04412e3eb9e, before 0c76ef3f26d5ef2ac2c21b47e7620cff35809fbb affected 3c5f8d371b7fef3e3714c4a062c7f3b4aa41d122 affected 9b55d84deec88c02b053a819acf08a6d471dda02 affected 2295608b44c91df767a5c68027f9c9e52ecb28e7 affected ce7ff920092130f249b75f9fe177edb3362fefe8 affected 3995f7a60feceba6c8f762f4aff3184f90a1291d affected 247c62ebdfae450bb76dd89cd4724df6be07df75 affected from 4.4.238, before 4.5 affected from 4.9.238, before 4.10 affected from 4.14.200, before 4.15 affected from 4.19.149, before 4.20 affected from 5.4.69, before 5.5 affected from 5.8.13, before 5.9
Other versions: unaffected
|
| Linux |
affected 5.9 unaffected before 5.9 unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50266 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50266
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50266
trivy image --scanners vuln IMAGE | grep CVE-2022-50266
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/f20a067f13106565816b4b6a6b665b2088a63824 git.kernel.org
- https://git.kernel.org/stable/c/c909985dd0c0f74b61e3f8f0e04bf8aa9c8b97c7 git.kernel.org
- https://git.kernel.org/stable/c/0c76ef3f26d5ef2ac2c21b47e7620cff35809fbb git.kernel.org
Source: the record CVE-2022-50266 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse