CVE-2022-50266

Source
https://cve.org/CVERecord?id=CVE-2022-50266
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50266.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50266
Downstream
Related
Published
2025-09-15T14:21:02.529Z
Modified
2026-03-20T11:47:21.669651Z
Summary
kprobes: Fix check for probe enabled in kill_kprobe()
Details

In the Linux kernel, the following vulnerability has been resolved:

kprobes: Fix check for probe enabled in kill_kprobe()

In killkprobe(), the check whether disarmkprobeftrace() needs to be called always fails. This is because before that we set the KPROBEFLAGGONE flag for kprobe so that "!kprobedisabled(p)" is always false.

The disarmkprobeftrace() call introduced by commit:

0cb2f1372baa ("kprobes: Fix NULL pointer dereference at kprobeftracehandler")

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 KPROBEFLAGGONE flag.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50266.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3031313eb3d549b7ad6f9fbcc52ba04412e3eb9e
Fixed
f20a067f13106565816b4b6a6b665b2088a63824
Fixed
c909985dd0c0f74b61e3f8f0e04bf8aa9c8b97c7
Fixed
0c76ef3f26d5ef2ac2c21b47e7620cff35809fbb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
3c5f8d371b7fef3e3714c4a062c7f3b4aa41d122
Last affected
9b55d84deec88c02b053a819acf08a6d471dda02
Last affected
2295608b44c91df767a5c68027f9c9e52ecb28e7
Last affected
ce7ff920092130f249b75f9fe177edb3362fefe8
Last affected
3995f7a60feceba6c8f762f4aff3184f90a1291d
Last affected
247c62ebdfae450bb76dd89cd4724df6be07df75

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50266.json"