# CVE-2026-46272: coresight: tmc-etr: Fix race condition between sysfs and perf mode

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.11% (percentile 0, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-06-03T15:50:14.618Z
- **Modified:** 2026-10-21T13:19:06.063Z

## Who should check

- Anyone running Linux \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 3e8cdf184646c28c5ea5fba754d24a3b29068739; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 206b6f672613d08b33e951a744d0a1c6ac5ad8ad; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 38a07194bbcddb18d77dad40ba9978d994c0b74c; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 6906aa70d4fc5900b954136e20e27c2be6d1acab; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< e6e43e82c79c97917cbe356c07e8a6f3f982ab53
- Anyone running Linux 6.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

coresight: tmc-etr: Fix race condition between sysfs and perf mode

When trying to run perf and sysfs mode simultaneously, the WARN\_ON()
in tmc\_etr\_enable\_hw() is triggered sometimes:

 WARNING: CPU: 42 PID: 3911571 at drivers/hwtracing/coresight/coresight-tmc-etr.c:1060 tmc\_etr\_enable\_hw+0xc0/0xd8 \[coresight\_tmc\]
 \[..snip..\]
 Call trace:
  tmc\_etr\_enable\_hw+0xc0/0xd8 \[coresight\_tmc\] (P)
  tmc\_enable\_etr\_sink+0x11c/0x250 \[coresight\_tmc\] (L)
  tmc\_enable\_etr\_sink+0x11c/0x250 \[coresight\_tmc\]
  coresight\_enable\_path+0x1c8/0x218 \[coresight\]
  coresight\_enable\_sysfs+0xa4/0x228 \[coresight\]
  enable\_source\_store+0x58/0xa8 \[coresight\]
  dev\_attr\_store+0x20/0x40
  sysfs\_kf\_write+0x4c/0x68
  kernfs\_fop\_write\_iter+0x120/0x1b8
  vfs\_write+0x2c8/0x388
  ksys\_write+0x74/0x108
  \_\_arm64\_sys\_write+0x24/0x38
  el0\_svc\_common.constprop.0+0x64/0x148
  do\_el0\_svc+0x24/0x38
  el0\_svc+0x3c/0x130
  el0t\_64\_sync\_handler+0xc8/0xd0
  el0t\_64\_sync+0x1ac/0x1b0
 ---\[ end trace 0000000000000000 \]---

Since the enablement of sysfs mode is separeted into two critical regions,
one for sysfs buffer allocation and another for hardware enablement, it's
possible to race with the perf mode. Fix this by double check whether
the perf mode's been used before enabling the hardware in sysfs mode.

 mode:
   \[sysfs mode\]                   \[perf mode\]
   tmc\_etr\_get\_sysfs\_buffer()
     spin\_lock(&drvdata-\>spinlock)
     \[sysfs buffer allocation\]
     spin\_unlock(&drvdata-\>spinlock)
                                  spin\_lock(&drvdata-\>spinlock)
                                  tmc\_etr\_enable\_hw()
                                    drvdata-\>etr\_buf = etr\_perf-\>etr\_buf
                                  spin\_unlock(&drvdata-\>spinlock)
   spin\_lock(&drvdata-\>spinlock)
   tmc\_etr\_enable\_hw()
     WARN\_ON(drvdata-\>etr\_buf) // WARN sicne etr\_buf initialized at
                                  the perf side
   spin\_unlock(&drvdata-\>spinlock)

With this fix, we retain the check for CS\_MODE\_PERF in get\_etr\_sysfs\_buf.
This ensures we verify whether the perf mode's already running before we
actually allocate the buffer. Then we can save the time of
allocating/freeing the sysfs buffer if race with the perf mode.

## Affected and fixed versions

- Linux: \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 3e8cdf184646c28c5ea5fba754d24a3b29068739; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 206b6f672613d08b33e951a744d0a1c6ac5ad8ad; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 38a07194bbcddb18d77dad40ba9978d994c0b74c; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 6906aa70d4fc5900b954136e20e27c2be6d1acab; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< e6e43e82c79c97917cbe356c07e8a6f3f982ab53 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46272.md
Affected: Linux >= 296b01fd106e787d4463974a7f42d286a5df08cd, < 3e8cdf184646c28c5ea5fba754d24a3b29068739; >= 296b01fd106e787d4463974a7f42d286a5df08cd, < 206b6f672613d08b33e951a744d0a1c6ac5ad8ad; >= 296b01fd106e787d4463974a7f42d286a5df08cd, < 38a07194bbcddb18d77dad40ba9978d994c0b74c; >= 296b01fd106e787d4463974…
Fixed in: Linux 3e8cdf184646c28c5ea5fba754d24a3b29068739, Linux 206b6f672613d08b33e951a744d0a1c6ac5ad8ad, Linux 38a07194bbcddb18d77dad40ba9978d994c0b74c, Linux 6906aa70d4fc5900b954136e20e27c2be6d1acab

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-2026-46272 being exploited?

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

### How serious is CVE-2026-46272?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-46272?

Linux \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 3e8cdf184646c28c5ea5fba754d24a3b29068739; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 206b6f672613d08b33e951a744d0a1c6ac5ad8ad; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 38a07194bbcddb18d77dad40ba9978d994c0b74c; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< 6906aa70d4fc5900b954136e20e27c2be6d1acab; \>= 296b01fd106e787d4463974a7f42d286a5df08cd, \< e6e43e82c79c97917cbe356c07e8a6f3f982ab53; Linux 6.5.

### Is there a fix for CVE-2026-46272?

Yes. Fixed in Linux 3e8cdf184646c28c5ea5fba754d24a3b29068739, Linux 206b6f672613d08b33e951a744d0a1c6ac5ad8ad, Linux 38a07194bbcddb18d77dad40ba9978d994c0b74c, Linux 6906aa70d4fc5900b954136e20e27c2be6d1acab. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-46272?

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

- patch: <https://git.kernel.org/stable/c/38a07194bbcddb18d77dad40ba9978d994c0b74c>
- patch: <https://git.kernel.org/stable/c/6906aa70d4fc5900b954136e20e27c2be6d1acab>
- patch: <https://git.kernel.org/stable/c/e6e43e82c79c97917cbe356c07e8a6f3f982ab53>
- other: <https://git.kernel.org/stable/c/3e8cdf184646c28c5ea5fba754d24a3b29068739>
- other: <https://git.kernel.org/stable/c/206b6f672613d08b33e951a744d0a1c6ac5ad8ad>

## 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-2026-46272>

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