# CVE-2026-31541: tracing: Fix trace\_marker copy link list updates

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-04-24T14:33:10.505Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< 75668e58244e63ec3785098a02e1cdcff14a6c2e; \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< cc267e4b4302247dc67ef937a9ac587a696a43c1; \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< 07183aac4a6828e474f00b37c9d795d0d99e18a7
- Anyone running Linux 6.16

## Description

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

tracing: Fix trace\_marker copy link list updates

When the "copy\_trace\_marker" option is enabled for an instance, anything
written into /sys/kernel/tracing/trace\_marker is also copied into that
instances buffer. When the option is set, that instance's trace\_array
descriptor is added to the marker\_copies link list. This list is protected
by RCU, as all iterations uses an RCU protected list traversal.

When the instance is deleted, all the flags that were enabled are cleared.
This also clears the copy\_trace\_marker flag and removes the trace\_array
descriptor from the list.

The issue is after the flags are called, a direct call to
update\_marker\_trace() is performed to clear the flag. This function
returns true if the state of the flag changed and false otherwise. If it
returns true here, synchronize\_rcu() is called to make sure all readers
see that its removed from the list.

But since the flag was already cleared, the state does not change and the
synchronization is never called, leaving a possible UAF bug.

Move the clearing of all flags below the updating of the copy\_trace\_marker
option which then makes sure the synchronization is performed.

Also use the flag for checking the state in update\_marker\_trace() instead
of looking at if the list is empty.

## Affected and fixed versions

- Linux: \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< 75668e58244e63ec3785098a02e1cdcff14a6c2e; \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< cc267e4b4302247dc67ef937a9ac587a696a43c1; \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< 07183aac4a6828e474f00b37c9d795d0d99e18a7 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-31541.md
Affected: Linux >= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, < 75668e58244e63ec3785098a02e1cdcff14a6c2e; >= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, < cc267e4b4302247dc67ef937a9ac587a696a43c1; >= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, < 07183aac4a6828e474f00b37c9d795d0d99e18a7; Linux 6.16
Fixed in: Linux 75668e58244e63ec3785098a02e1cdcff14a6c2e, Linux 07183aac4a6828e474f00b37c9d795d0d99e18a7

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

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

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

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

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

Linux \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< 75668e58244e63ec3785098a02e1cdcff14a6c2e; \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< cc267e4b4302247dc67ef937a9ac587a696a43c1; \>= 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86, \< 07183aac4a6828e474f00b37c9d795d0d99e18a7; Linux 6.16.

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

Yes. Fixed in Linux 75668e58244e63ec3785098a02e1cdcff14a6c2e, Linux 07183aac4a6828e474f00b37c9d795d0d99e18a7. Upgrade Linux to 07183aac4a6828e474f00b37c9d795d0d99e18a7 or later.

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

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/75668e58244e63ec3785098a02e1cdcff14a6c2e>
- patch: <https://git.kernel.org/stable/c/cc267e4b4302247dc67ef937a9ac587a696a43c1>
- patch: <https://git.kernel.org/stable/c/07183aac4a6828e474f00b37c9d795d0d99e18a7>

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

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