
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31541 is a use-after-free (UAF) vulnerability in the Linux kernel's tracing subsystem, specifically in the trace_marker copy linked list management. When the copy_trace_marker option is enabled for a tracing instance, a race condition during instance deletion can cause synchronize_rcu() to be skipped, leaving a dangling pointer to freed memory accessible by RCU readers. The vulnerability affects Linux kernel versions 6.16 through 6.18.19, 6.19 through 6.19.9, and 7.0-rc1 through 7.0-rc4. It carries a CVSS v3.1 base score of 7.8 (High) (Red Hat Advisory, Red Hat Bugzilla).
The root cause is a use-after-free (CWE-416 / CWE-825: Expired Pointer Dereference) in the kernel tracing subsystem's handling of the marker_copies RCU-protected linked list. When a tracing instance with copy_trace_marker enabled is deleted, the code clears all flags first and then calls update_marker_trace() to remove the instance's trace_array descriptor from the list. Because the flag was already cleared before this call, update_marker_trace() detects no state change and returns false — causing synchronize_rcu() to never be invoked. As a result, RCU readers may still access the now-freed trace_array descriptor, creating a UAF condition. The fix reorders operations so that update_marker_trace() is called before the flags are cleared, ensuring synchronize_rcu() is properly triggered; additionally, update_marker_trace() is updated to check the flag state rather than list emptiness (Red Hat Bugzilla, Kernel Patch).
A local attacker with low privileges and access to the kernel tracing subsystem (/sys/kernel/tracing) could exploit this UAF to read or write freed kernel memory. Successful exploitation could lead to sensitive kernel data disclosure (confidentiality impact), memory corruption (integrity impact), or system instability/crash (availability impact). In a worst-case scenario, the vulnerability could be leveraged for local privilege escalation to root (Red Hat Advisory, Feedly).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time. The vulnerability requires local access with low privileges (e.g., access to /sys/kernel/tracing) and is not remotely exploitable. The EPSS score is approximately 0.017% (0.000170), reflecting a low probability of near-term exploitation. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Red Hat Advisory, Feedly).
/sys/kernel/tracing.copy_trace_marker option, causing the instance's trace_array descriptor to be added to the marker_copies RCU-protected linked list.update_marker_trace() is called, causing synchronize_rcu() to be skipped and leaving the freed trace_array descriptor in the list./sys/kernel/tracing/trace_marker) that triggers an RCU traversal of the marker_copies list while the freed memory is still accessible, enabling read of sensitive kernel data or memory corruption for privilege escalation.Update the Linux kernel to a patched version: 6.18.20 or later (for the 6.18.x branch), 6.19.10 or later (for the 6.19.x branch), or 7.0 (stable release). As a configuration-based workaround, restrict access to /sys/kernel/tracing to trusted administrative users only, and limit the ability to create and delete tracing instances. Monitoring for unusual tracing subsystem activity on affected kernel versions is also recommended (Red Hat Advisory, Kernel Patch).
The vulnerability was disclosed via the Linux kernel CVE announcement mailing list and tracked by Red Hat's Product Security team. No notable independent researcher commentary or significant social media discussion has been observed beyond standard CVE tracking and vendor advisory publication (Red Hat Bugzilla, Kernel CVE Announce).
Fix availability across major Linux distributions and their releases.
bionic
linux
bionic (esm-infra)
linux
bionic (fips-updates)
linux-fips
bionic (fips)
linux-fips
devel
linux
focal
linux
focal (esm-infra)
linux
focal (fips-updates)
linux-fips
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."