CVE-2026-23159

perf: sched: Fix perf crash with new is_user_task() helper

No CVSS score yet EPSS 0.20%

Published 14 Feb 2026 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2026-23159

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-2026-23159 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.

Check my servers

Description

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

perf: sched: Fix perf crash with new is_user_task() helper

In order to do a user space stacktrace the current task needs to be a user task that has executed in user space. It use to be possible to test if a task is a user task or not by simply checking the task_struct mm field. If it was non NULL, it was a user task and if not it was a kernel task.

But things have changed over time, and some kernel tasks now have their own mm field.

An idea was made to instead test PF_KTHREAD and two functions were used to wrap this check in case it became more complex to test if a task was a user task or not[1]. But this was rejected and the C code simply checked the PF_KTHREAD directly.

It was later found that not all kernel threads set PF_KTHREAD. The io-uring helpers instead set PF_USER_WORKER and this needed to be added as well.

But checking the flags is still not enough. There's a very small window when a task exits that it frees its mm field and it is set back to NULL. If perf were to trigger at this moment, the flags test would say its a user space task but when perf would read the mm field it would crash with at NULL pointer dereference.

Now there are flags that can be used to test if a task is exiting, but they are set in areas that perf may still want to profile the user space task (to see where it exited). The only real test is to check both the flags and the mm field.

Instead of making this modification in every location, create a new is_user_task() helper function that does all the tests needed to know if it is safe to read the user space memory or not.

[1] https://lore.kernel.org/all/20250425204120.639530125@goodmis.org/

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.61% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 34b5aba8511a12fb2e9bd3124835cb4087187dac, before d84a4836dc246b7dc244e46a08ff992956b68db0
affected from 8d79f96e477c4b8e3fca2efb36b269d8960a2285, before 5aac392fcd3d981d7997f1a0766829e1afdeac2e
affected from 90942f9fac05702065ff82ed0bade0d08168d4ea, before a28fce0365e1cb9cb8c04c893b9334e5ca9d9f1c
affected from 90942f9fac05702065ff82ed0bade0d08168d4ea, before 76ed27608f7dd235b727ebbb12163438c2fbb617
affected 5050083e1a2f3e5e29cee0205c40e5864b52601d
affected from 6.6.116, before 6.6.123
affected from 6.12.57, before 6.12.69
affected from 6.17.7, before 6.18
Other versions: unaffected
Linux
affected 6.18
unaffected before 6.18
unaffected from 6.6.123 up to and including 6.6.*
unaffected from 6.12.69 up to and including 6.12.*
unaffected from 6.18.9 up to and including 6.18.*
unaffected 6.19 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-2026-23159 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23159

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-2026-23159
trivy image --scanners vuln IMAGE | grep CVE-2026-23159

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

Source: the record CVE-2026-23159 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.