CVE-2022-50266 kprobes: Fix check for probe enabled in kill_kprobe()

Medium 5.5 Published Updated

A logic error in the Linux kernel's kprobes subsystem causes a NULL pointer dereference, leading to a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-50266?

CVE-2022-50266 is a medium-severity vulnerability in Linux kernel, published on 15 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2022-50266?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-50266?

Apply the vendor's patch.

Is CVE-2022-50266 being exploited?

There is no known exploitation of CVE-2022-50266 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-71197, DEBIAN-CVE-2022-50266, GHSA-gcqm-mw5p-q5gh, ROOT-OS-DEBIAN-11-CVE-2022-50266, ROOT-OS-UBUNTU-2204-CVE-2022-50266, UBUNTU-CVE-2022-50266.

Is CVE-2022-50266 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free