CyberSecBulletin
CVE-2026-31541NVD status: Analyzed

Linux: Use After Free

CVE-2026-31541 is a high-severity use after free vulnerability in Linux, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 75668e58244e63ec3785098a02e1cdcff14a6c2e, cc267e4b4302247dc67ef937a9ac587a696a43c1, 07183aac4a6828e474f00b37c9d795d0d99e18a7 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.13% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to 75668e58244e63ec3785098a02e1cdcff14a6c2e or cc267e4b4302247dc67ef937a9ac587a696a43c1 or 07183aac4a6828e474f00b37c9d795d0d99e18a7, whichever matches your release line, or a later version.
  2. Update Linux Kernel to 6.18.20 or 6.19.10, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86 up to, but not including, 75668e58244e63ec3785098a02e1cdcff14a6c2e; 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86 up to, but not including, cc267e4b4302247dc67ef937a9ac587a696a43c1; 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86 up to, but not including, 07183aac4a6828e474f00b37c9d795d0d99e18a7; 6.1675668e58244e63ec3785098a02e1cdcff14a6c2e, cc267e4b4302247dc67ef937a9ac587a696a43c1, 07183aac4a6828e474f00b37c9d795d0d99e18a7
LinuxLinux Kernel6.16 up to, but not including, 6.18.20; 6.19 up to, but not including, 6.19.10; 7.06.18.20, 6.19.10

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Official 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.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

More Use After Free vulnerabilities (CWE-416)

Timeline

  1. CVE record published.
  2. Record last changed materially (score, affected products, status or references).

References

Recent Use After Free vulnerabilities

Spotted an error? Tell us.