# CVE-2023-52839: drivers: perf: Do not broadcast to other cpus when starting a counter

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

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **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.27% (percentile 12, 2026-11-29)
- **Published:** 2024-05-21T15:31:39.196Z
- **Modified:** 2026-06-17T06:43:42.177Z

## Who should check

- Anyone running Linux \>= 3fec323339a4a9801a54e8b282eb571965b67b23, \< 85be1a73fd298ed3fd060dfce97caef5f9928c57; \>= 3fec323339a4a9801a54e8b282eb571965b67b23, \< 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72
- Anyone running Linux 6.6

## Description

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

drivers: perf: Do not broadcast to other cpus when starting a counter

This command:

$ perf record -e cycles:k -e instructions:k -c 10000 -m 64M dd if=/dev/zero of=/dev/null count=1000

gives rise to this kernel warning:

\[  444.364395\] WARNING: CPU: 0 PID: 104 at kernel/smp.c:775 smp\_call\_function\_many\_cond+0x42c/0x436
\[  444.364515\] Modules linked in:
\[  444.364657\] CPU: 0 PID: 104 Comm: perf-exec Not tainted 6.6.0-rc6-00051-g391df82e8ec3-dirty \#73
\[  444.364771\] Hardware name: riscv-virtio,qemu (DT)
\[  444.364868\] epc : smp\_call\_function\_many\_cond+0x42c/0x436
\[  444.364917\]  ra : on\_each\_cpu\_cond\_mask+0x20/0x32
\[  444.364948\] epc : ffffffff8009f9e0 ra : ffffffff8009fa5a sp : ff20000000003800
\[  444.364966\]  gp : ffffffff81500aa0 tp : ff60000002b83000 t0 : ff200000000038c0
\[  444.364982\]  t1 : ffffffff815021f0 t2 : 000000000000001f s0 : ff200000000038b0
\[  444.364998\]  s1 : ff60000002c54d98 a0 : ff60000002a73940 a1 : 0000000000000000
\[  444.365013\]  a2 : 0000000000000000 a3 : 0000000000000003 a4 : 0000000000000100
\[  444.365029\]  a5 : 0000000000010100 a6 : 0000000000f00000 a7 : 0000000000000000
\[  444.365044\]  s2 : 0000000000000000 s3 : ffffffffffffffff s4 : ff60000002c54d98
\[  444.365060\]  s5 : ffffffff81539610 s6 : ffffffff80c20c48 s7 : 0000000000000000
\[  444.365075\]  s8 : 0000000000000000 s9 : 0000000000000001 s10: 0000000000000001
\[  444.365090\]  s11: ffffffff80099394 t3 : 0000000000000003 t4 : 00000000eac0c6e6
\[  444.365104\]  t5 : 0000000400000000 t6 : ff60000002e010d0
\[  444.365120\] status: 0000000200000100 badaddr: 0000000000000000 cause: 0000000000000003
\[  444.365226\] \[\<ffffffff8009f9e0\>\] smp\_call\_function\_many\_cond+0x42c/0x436
\[  444.365295\] \[\<ffffffff8009fa5a\>\] on\_each\_cpu\_cond\_mask+0x20/0x32
\[  444.365311\] \[\<ffffffff806e90dc\>\] pmu\_sbi\_ctr\_start+0x7a/0xaa
\[  444.365327\] \[\<ffffffff806e880c\>\] riscv\_pmu\_start+0x48/0x66
\[  444.365339\] \[\<ffffffff8012111a\>\] perf\_adjust\_freq\_unthr\_context+0x196/0x1ac
\[  444.365356\] \[\<ffffffff801237aa\>\] perf\_event\_task\_tick+0x78/0x8c
\[  444.365368\] \[\<ffffffff8003faf4\>\] scheduler\_tick+0xe6/0x25e
\[  444.365383\] \[\<ffffffff8008a042\>\] update\_process\_times+0x80/0x96
\[  444.365398\] \[\<ffffffff800991ec\>\] tick\_sched\_handle+0x26/0x52
\[  444.365410\] \[\<ffffffff800993e4\>\] tick\_sched\_timer+0x50/0x98
\[  444.365422\] \[\<ffffffff8008a6aa\>\] \_\_hrtimer\_run\_queues+0x126/0x18a
\[  444.365433\] \[\<ffffffff8008b350\>\] hrtimer\_interrupt+0xce/0x1da
\[  444.365444\] \[\<ffffffff806cdc60\>\] riscv\_timer\_interrupt+0x30/0x3a
\[  444.365457\] \[\<ffffffff8006afa6\>\] handle\_percpu\_devid\_irq+0x80/0x114
\[  444.365470\] \[\<ffffffff80065b82\>\] generic\_handle\_domain\_irq+0x1c/0x2a
\[  444.365483\] \[\<ffffffff8045faec\>\] riscv\_intc\_irq+0x2e/0x46
\[  444.365497\] \[\<ffffffff808a9c62\>\] handle\_riscv\_irq+0x4a/0x74
\[  444.365521\] \[\<ffffffff808aa760\>\] do\_irq+0x7c/0x7e
\[  444.365796\] ---\[ end trace 0000000000000000 \]---

That's because the fix in commit 3fec323339a4 ("drivers: perf: Fix panic
in riscv SBI mmap support") was wrong since there is no need to broadcast
to other cpus when starting a counter, that's only needed in mmap when
the counters could have already been started on other cpus, so simply
remove this broadcast.

## Affected and fixed versions

- Linux: \>= 3fec323339a4a9801a54e8b282eb571965b67b23, \< 85be1a73fd298ed3fd060dfce97caef5f9928c57; \>= 3fec323339a4a9801a54e8b282eb571965b67b23, \< 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52839.md
Affected: Linux >= 3fec323339a4a9801a54e8b282eb571965b67b23, < 85be1a73fd298ed3fd060dfce97caef5f9928c57; >= 3fec323339a4a9801a54e8b282eb571965b67b23, < 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72; Linux 6.6
Fixed in: Linux 85be1a73fd298ed3fd060dfce97caef5f9928c57, Linux 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72

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-2023-52839 being exploited?

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

### How serious is CVE-2023-52839?

Low: CVSS 3.3 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52839?

Linux \>= 3fec323339a4a9801a54e8b282eb571965b67b23, \< 85be1a73fd298ed3fd060dfce97caef5f9928c57; \>= 3fec323339a4a9801a54e8b282eb571965b67b23, \< 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72; Linux 6.6.

### Is there a fix for CVE-2023-52839?

Yes. Fixed in Linux 85be1a73fd298ed3fd060dfce97caef5f9928c57, Linux 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72. Upgrade Linux to 61e3d993c8bd3e80f8f1363ed5e04f88ab531b72 or later.

### How do I check if I'm affected by CVE-2023-52839?

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/85be1a73fd298ed3fd060dfce97caef5f9928c57>
- patch: <https://git.kernel.org/stable/c/61e3d993c8bd3e80f8f1363ed5e04f88ab531b72>

## 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-2023-52839>

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