# CVE-2026-23159: perf: sched: Fix perf crash with new is\_user\_task() helper

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-02-14T16:01:25.229Z
- **Modified:** 2026-06-17T10:21:00.550Z

## Who should check

- Anyone running Linux \>= 34b5aba8511a12fb2e9bd3124835cb4087187dac, \< d84a4836dc246b7dc244e46a08ff992956b68db0; \>= 8d79f96e477c4b8e3fca2efb36b269d8960a2285, \< 5aac392fcd3d981d7997f1a0766829e1afdeac2e; \>= 90942f9fac05702065ff82ed0bade0d08168d4ea, \< a28fce0365e1cb9cb8c04c893b9334e5ca9d9f1c; \>= 90942f9fac05702065ff82ed0bade0d08168d4ea, \< 76ed27608f7dd235b727ebbb12163438c2fbb617; 5050083e1a2f3e5e29cee0205c40e5864b52601d; \>= 6.6.116, \< 6.6.123; \>= 6.12.57, \< 6.12.69; \>= 6.17.7, \< 6.18
- Anyone running Linux 6.18

## 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/

## Affected and fixed versions

- Linux: \>= 34b5aba8511a12fb2e9bd3124835cb4087187dac, \< d84a4836dc246b7dc244e46a08ff992956b68db0; \>= 8d79f96e477c4b8e3fca2efb36b269d8960a2285, \< 5aac392fcd3d981d7997f1a0766829e1afdeac2e; \>= 90942f9fac05702065ff82ed0bade0d08168d4ea, \< a28fce0365e1cb9cb8c04c893b9334e5ca9d9f1c; \>= 90942f9fac05702065ff82ed0bade0d08168d4ea, \< 76ed27608f7dd235b727ebbb12163438c2fbb617; 5050083e1a2f3e5e29cee0205c40e5864b52601d; \>= 6.6.116, \< 6.6.123; \>= 6.12.57, \< 6.12.69; \>= 6.17.7, \< 6.18 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 6.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23159. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23159.md
Affected: Linux >= 34b5aba8511a12fb2e9bd3124835cb4087187dac, < d84a4836dc246b7dc244e46a08ff992956b68db0; >= 8d79f96e477c4b8e3fca2efb36b269d8960a2285, < 5aac392fcd3d981d7997f1a0766829e1afdeac2e; >= 90942f9fac05702065ff82ed0bade0d08168d4ea, < a28fce0365e1cb9cb8c04c893b9334e5ca9d9f1c; >= 90942f9fac05702065ff82e…
Fixed in: Linux 5aac392fcd3d981d7997f1a0766829e1afdeac2e, Linux 76ed27608f7dd235b727ebbb12163438c2fbb617, Linux 6.6.123, Linux 6.12.69, Linux 6.18

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23159 being exploited?

There is no confirmed exploitation: CVE-2026-23159 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23159?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23159?

Linux \>= 34b5aba8511a12fb2e9bd3124835cb4087187dac, \< d84a4836dc246b7dc244e46a08ff992956b68db0; \>= 8d79f96e477c4b8e3fca2efb36b269d8960a2285, \< 5aac392fcd3d981d7997f1a0766829e1afdeac2e; \>= 90942f9fac05702065ff82ed0bade0d08168d4ea, \< a28fce0365e1cb9cb8c04c893b9334e5ca9d9f1c; \>= 90942f9fac05702065ff82ed0bade0d08168d4ea, \< 76ed27608f7dd235b727ebbb12163438c2fbb617; 5050083e1a2f3e5e29cee0205c40e5864b52601d; \>= 6.6.116, \< 6.6.123; \>= 6.12.57, \< 6.12.69; \>= 6.17.7, \< 6.18; Linux 6.18.

### Is there a fix for CVE-2026-23159?

Yes. Fixed in Linux 5aac392fcd3d981d7997f1a0766829e1afdeac2e, Linux 76ed27608f7dd235b727ebbb12163438c2fbb617, Linux 6.6.123, Linux 6.12.69, Linux 6.18. Upgrade Linux to 6.18 or later.

### How do I check if I'm affected by CVE-2026-23159?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d84a4836dc246b7dc244e46a08ff992956b68db0>
- patch: <https://git.kernel.org/stable/c/5aac392fcd3d981d7997f1a0766829e1afdeac2e>
- patch: <https://git.kernel.org/stable/c/a28fce0365e1cb9cb8c04c893b9334e5ca9d9f1c>
- patch: <https://git.kernel.org/stable/c/76ed27608f7dd235b727ebbb12163438c2fbb617>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23159>

HTML: <https://flawdb.com/CVE-2026-23159> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23159>
