CVE-2025-68376
coresight: ETR: Fix ETR buffer use-after-free issue
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.
INFO
Published Date :
Dec. 24, 2025, 11:16 a.m.
Last Modified :
Oct. 21, 2026, 1:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Check ETR's mode before updating.
- Skip updating and releasing if mode is CS_MODE_SYSFS.
- Update ETR buffer to point to new allocation.
- Apply kernel updates to fix the issue.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-68376.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-68376 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-68376
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-68376 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-68376 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 21, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/68xxx/CVE-2025-68376.json">CVE-2025-68376</a> Added Reference https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3 Added Reference https://git.kernel.org/stable/c/4e83434247ff8005a0b9a1ee997864abf8f259ec Added Reference https://git.kernel.org/stable/c/5d5d130835b417c7bfd6c942f0149e34397d4463 Added Reference https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07 Added Reference https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422 Removed Reference https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3 Removed Reference https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07 Removed Reference https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422 -
CVE Translated by [email protected]
Oct. 13, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: coresight: ETR: Solucionar el problema de uso después de liberación del búfer ETR Cuando ETR está habilitado como CS_MODE_SYSFS, si el tamaño del búfer se cambia y se habilita de nuevo, actualmente sysfs_buf apuntará a la memoria recién asignada (buf_new) y liberará la memoria antigua (buf_old). Pero el etr_buf que está siendo utilizado por el ETR permanece apuntando a buf_old, no actualizado a buf_new. En este caso, resultará en un problema de uso después de liberación de memoria. Solucione esto verificando el modo de ETR antes de actualizar y liberar buf_old; si el modo es CS_MODE_SYSFS, entonces omita su actualización y liberación. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'bd2767ec3df2775bc336f441f9068a989ccb919d', 'lessThan': '70acbc9c77686b7a521af6d7a543dcd9c324cf07', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd2767ec3df2775bc336f441f9068a989ccb919d', 'lessThan': 'cda077a19f5c8d6ec61e5b97deca203d95e3a422', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd2767ec3df2775bc336f441f9068a989ccb919d', 'lessThan': '35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3', 'versionType': 'git'}, {'status': 'affected', 'version': 'fdd3ceb0001da6768bede9779a0190a42e65c404', 'versionType': 'git'}, {'status': 'affected', 'version': '6.5.8', 'lessThan': '6.6', 'versionType': 'semver'}], 'programFiles': ['drivers/hwtracing/coresight/coresight-tmc-etr.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.6'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.6', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.17.13', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18.2', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/hwtracing/coresight/coresight-tmc-etr.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 24, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3 Added Reference https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07 Added Reference https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422