# CVE-2025-68376: coresight: ETR: Fix ETR buffer use-after-free issue

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T10:33:05.503Z
- **Modified:** 2026-10-21T13:18:23.520Z

## Who should check

- Anyone running Linux \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 5d5d130835b417c7bfd6c942f0149e34397d4463; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 4e83434247ff8005a0b9a1ee997864abf8f259ec; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 70acbc9c77686b7a521af6d7a543dcd9c324cf07; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< cda077a19f5c8d6ec61e5b97deca203d95e3a422; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3; fdd3ceb0001da6768bede9779a0190a42e65c404; \>= 6.5.8, \< 6.6
- Anyone running Linux 6.6

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

## Affected and fixed versions

- Linux: \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 5d5d130835b417c7bfd6c942f0149e34397d4463; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 4e83434247ff8005a0b9a1ee997864abf8f259ec; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 70acbc9c77686b7a521af6d7a543dcd9c324cf07; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< cda077a19f5c8d6ec61e5b97deca203d95e3a422; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3; fdd3ceb0001da6768bede9779a0190a42e65c404; \>= 6.5.8, \< 6.6 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 6.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68376. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68376.md
Affected: Linux >= bd2767ec3df2775bc336f441f9068a989ccb919d, < 5d5d130835b417c7bfd6c942f0149e34397d4463; >= bd2767ec3df2775bc336f441f9068a989ccb919d, < 4e83434247ff8005a0b9a1ee997864abf8f259ec; >= bd2767ec3df2775bc336f441f9068a989ccb919d, < 70acbc9c77686b7a521af6d7a543dcd9c324cf07; >= bd2767ec3df2775bc336f44…
Fixed in: Linux 5d5d130835b417c7bfd6c942f0149e34397d4463, Linux 4e83434247ff8005a0b9a1ee997864abf8f259ec, Linux 70acbc9c77686b7a521af6d7a543dcd9c324cf07, Linux 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3, Linux 6.6

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-2025-68376 being exploited?

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

### How serious is CVE-2025-68376?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68376?

Linux \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 5d5d130835b417c7bfd6c942f0149e34397d4463; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 4e83434247ff8005a0b9a1ee997864abf8f259ec; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 70acbc9c77686b7a521af6d7a543dcd9c324cf07; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< cda077a19f5c8d6ec61e5b97deca203d95e3a422; \>= bd2767ec3df2775bc336f441f9068a989ccb919d, \< 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3; fdd3ceb0001da6768bede9779a0190a42e65c404; \>= 6.5.8, \< 6.6; Linux 6.6.

### Is there a fix for CVE-2025-68376?

Yes. Fixed in Linux 5d5d130835b417c7bfd6c942f0149e34397d4463, Linux 4e83434247ff8005a0b9a1ee997864abf8f259ec, Linux 70acbc9c77686b7a521af6d7a543dcd9c324cf07, Linux 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3, Linux 6.6. Upgrade Linux to 6.6 or later.

### How do I check if I'm affected by CVE-2025-68376?

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

- other: <https://git.kernel.org/stable/c/5d5d130835b417c7bfd6c942f0149e34397d4463>
- other: <https://git.kernel.org/stable/c/4e83434247ff8005a0b9a1ee997864abf8f259ec>
- other: <https://git.kernel.org/stable/c/70acbc9c77686b7a521af6d7a543dcd9c324cf07>
- other: <https://git.kernel.org/stable/c/cda077a19f5c8d6ec61e5b97deca203d95e3a422>
- other: <https://git.kernel.org/stable/c/35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3>

## 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-2025-68376>

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