# CVE-2026-23138: tracing: Add recursion protection in kernel stack trace recording

> 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)
- **Published:** 2026-02-14T15:22:23.385Z
- **Modified:** 2026-11-05T22:18:03.787Z

## Who should check

- Anyone running Linux \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 80fe242a6239778025ba3be8e7263e3d69c37947; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 9b03768037d91ce727effb1c5d92d2c7781bf692; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 19e18e6dabb1bbba76d2809ca7d8ae9e1f5975fe; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 5b7f91acffd2c4c000971553d22efa1e1bb4feae; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb
- Anyone running Linux 5.8

## Description

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

tracing: Add recursion protection in kernel stack trace recording

A bug was reported about an infinite recursion caused by tracing the rcu
events with the kernel stack trace trigger enabled. The stack trace code
called back into RCU which then called the stack trace again.

Expand the ftrace recursion protection to add a set of bits to protect
events from recursion. Each bit represents the context that the event is
in (normal, softirq, interrupt and NMI).

Have the stack trace code use the interrupt context to protect against
recursion.

Note, the bug showed an issue in both the RCU code as well as the tracing
stacktrace code. This only handles the tracing stack trace side of the
bug. The RCU fix will be handled separately.

## Affected and fixed versions

- Linux: \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 80fe242a6239778025ba3be8e7263e3d69c37947; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 9b03768037d91ce727effb1c5d92d2c7781bf692; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 19e18e6dabb1bbba76d2809ca7d8ae9e1f5975fe; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 5b7f91acffd2c4c000971553d22efa1e1bb4feae; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb 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-23138. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23138.md
Affected: Linux >= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, < 80fe242a6239778025ba3be8e7263e3d69c37947; >= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, < 9b03768037d91ce727effb1c5d92d2c7781bf692; >= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, < 19e18e6dabb1bbba76d2809ca7d8ae9e1f5975fe; >= 5f5fa7ea89dc82d34ed458f…
Fixed in: Linux 80fe242a6239778025ba3be8e7263e3d69c37947, Linux 9b03768037d91ce727effb1c5d92d2c7781bf692, Linux 19e18e6dabb1bbba76d2809ca7d8ae9e1f5975fe, Linux 5b7f91acffd2c4c000971553d22efa1e1bb4feae, Linux 5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb

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-23138 being exploited?

There is no confirmed exploitation: CVE-2026-23138 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-23138?

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

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

Linux \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 80fe242a6239778025ba3be8e7263e3d69c37947; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 9b03768037d91ce727effb1c5d92d2c7781bf692; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 19e18e6dabb1bbba76d2809ca7d8ae9e1f5975fe; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 5b7f91acffd2c4c000971553d22efa1e1bb4feae; \>= 5f5fa7ea89dc82d34ed458f4d7a8634e8e9eefce, \< 5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb; Linux 5.8.

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

Yes. Fixed in Linux 80fe242a6239778025ba3be8e7263e3d69c37947, Linux 9b03768037d91ce727effb1c5d92d2c7781bf692, Linux 19e18e6dabb1bbba76d2809ca7d8ae9e1f5975fe, Linux 5b7f91acffd2c4c000971553d22efa1e1bb4feae, Linux 5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb. Upgrade Linux to 5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb or later.

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

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/5b7f91acffd2c4c000971553d22efa1e1bb4feae>
- patch: <https://git.kernel.org/stable/c/5f1ef0dfcb5b7f4a91a9b0e0ba533efd9f7e2cdb>
- other: <https://git.kernel.org/stable/c/80fe242a6239778025ba3be8e7263e3d69c37947>
- other: <https://git.kernel.org/stable/c/9b03768037d91ce727effb1c5d92d2c7781bf692>
- other: <https://git.kernel.org/stable/c/19e18e6dabb1bbba76d2809ca7d8ae9e1f5975fe>

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

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