CVE-2025-68376
Unknown Unknown - Not Provided

Use-After-Free in Linux Kernel Coresight ETR Buffer Management

Vulnerability report for CVE-2025-68376, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: coresight: ETR: Fix ETR buffer use-after-free issue When ETR is enabled as CS_MODE_SYSFS, if the buffer size is changed and enabled again, currently sysfs_buf will point to the newly allocated memory(buf_new) and free the old memory(buf_old). But the etr_buf that is being used by the ETR remains pointed to buf_old, not updated to buf_new. In this case, it will result in a memory use-after-free issue. Fix this by checking ETR's mode before updating and releasing buf_old, if the mode is CS_MODE_SYSFS, then skip updating and releasing it.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-07-06
AI Q&A
2025-12-24
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel *
linux kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a use-after-free issue in the Linux kernel's coresight ETR component. When ETR is enabled in CS_MODE_SYSFS mode and the buffer size is changed and re-enabled, the system frees the old buffer memory but the ETR buffer pointer still references the freed memory. This leads to a use-after-free condition where the system may access memory that has already been freed, potentially causing instability or crashes.

Impact Analysis

The use-after-free vulnerability can lead to system instability, crashes, or potentially allow an attacker to execute arbitrary code or cause denial of service by exploiting the invalid memory access in the Linux kernel's coresight ETR component.

Mitigation Strategies

To mitigate this vulnerability, update the Linux kernel to a version where the ETR buffer use-after-free issue is fixed. Specifically, ensure that the kernel includes the patch that checks the ETR mode before updating and releasing the buffer, preventing the use-after-free condition when ETR is enabled as CS_MODE_SYSFS.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-68376. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart