# CVE-2023-53583: perf: RISC-V: Remove PERF\_HES\_STOPPED flag checking in riscv\_pmu\_start()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.22% (percentile 7, 2026-11-26)
- **Published:** 2025-10-04T15:43:59.154Z
- **Modified:** 2026-06-17T06:45:39.267Z

## Who should check

- Anyone running Linux \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< aeb62beaf9cbd0a72e7f97c9af6d3e7f76ce2946; \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< 8270d539a943d00cf6a094da0073e2b5972b641d; \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< 66843b14fb71825fdd73ab12f6594f2243b402be
- Anyone running Linux 6.1

## Description

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

perf: RISC-V: Remove PERF\_HES\_STOPPED flag checking in riscv\_pmu\_start()

Since commit 096b52fd2bb4 ("perf: RISC-V: throttle perf events") the
perf\_sample\_event\_took() function was added to report time spent in
overflow interrupts. If the interrupt takes too long, the perf framework
will lower the sysctl\_perf\_event\_sample\_rate and max\_samples\_per\_tick.
When hwc-\>interrupts is larger than max\_samples\_per\_tick, the
hwc-\>interrupts will be set to MAX\_INTERRUPTS, and events will be
throttled within the \_\_perf\_event\_account\_interrupt() function.

However, the RISC-V PMU driver doesn't call riscv\_pmu\_stop() to update the
PERF\_HES\_STOPPED flag after perf\_event\_overflow() in pmu\_sbi\_ovf\_handler()
function to avoid throttling. When the perf framework unthrottled the event
in the timer interrupt handler, it triggers riscv\_pmu\_start() function
and causes a WARN\_ON\_ONCE() warning, as shown below:

 ------------\[ cut here \]------------
 WARNING: CPU: 0 PID: 240 at drivers/perf/riscv\_pmu.c:184 riscv\_pmu\_start+0x7c/0x8e
 Modules linked in:
 CPU: 0 PID: 240 Comm: ls Not tainted 6.4-rc4-g19d0788e9ef2 \#1
 Hardware name: SiFive (DT)
 epc : riscv\_pmu\_start+0x7c/0x8e
  ra : riscv\_pmu\_start+0x28/0x8e
 epc : ffffffff80aef864 ra : ffffffff80aef810 sp : ffff8f80004db6f0
  gp : ffffffff81c83750 tp : ffffaf80069f9bc0 t0 : ffff8f80004db6c0
  t1 : 0000000000000000 t2 : 000000000000001f s0 : ffff8f80004db720
  s1 : ffffaf8008ca1068 a0 : 0000ffffffffffff a1 : 0000000000000000
  a2 : 0000000000000001 a3 : 0000000000000870 a4 : 0000000000000000
  a5 : 0000000000000000 a6 : 0000000000000840 a7 : 0000000000000030
  s2 : 0000000000000000 s3 : ffffaf8005165800 s4 : ffffaf800424da00
  s5 : ffffffffffffffff s6 : ffffffff81cc7590 s7 : 0000000000000000
  s8 : 0000000000000006 s9 : 0000000000000001 s10: ffffaf807efbc340
  s11: ffffaf807efbbf00 t3 : ffffaf8006a16028 t4 : 00000000dbfbb796
  t5 : 0000000700000000 t6 : ffffaf8005269870
 status: 0000000200000100 badaddr: 0000000000000000 cause: 0000000000000003
 \[\<ffffffff80aef864\>\] riscv\_pmu\_start+0x7c/0x8e
 \[\<ffffffff80185b56\>\] perf\_adjust\_freq\_unthr\_context+0x15e/0x174
 \[\<ffffffff80188642\>\] perf\_event\_task\_tick+0x88/0x9c
 \[\<ffffffff800626a8\>\] scheduler\_tick+0xfe/0x27c
 \[\<ffffffff800b5640\>\] update\_process\_times+0x9a/0xba
 \[\<ffffffff800c5bd4\>\] tick\_sched\_handle+0x32/0x66
 \[\<ffffffff800c5e0c\>\] tick\_sched\_timer+0x64/0xb0
 \[\<ffffffff800b5e50\>\] \_\_hrtimer\_run\_queues+0x156/0x2f4
 \[\<ffffffff800b6bdc\>\] hrtimer\_interrupt+0xe2/0x1fe
 \[\<ffffffff80acc9e8\>\] riscv\_timer\_interrupt+0x38/0x42
 \[\<ffffffff80090a16\>\] handle\_percpu\_devid\_irq+0x90/0x1d2
 \[\<ffffffff8008a9f4\>\] generic\_handle\_domain\_irq+0x28/0x36

After referring other PMU drivers like Arm, Loongarch, Csky, and Mips,
they don't call \*\_pmu\_stop() to update with PERF\_HES\_STOPPED flag
after perf\_event\_overflow() function nor do they add PERF\_HES\_STOPPED
flag checking in \*\_pmu\_start() which don't cause this warning.

Thus, it's recommended to remove this unnecessary check in
riscv\_pmu\_start() function to prevent this warning.

## Affected and fixed versions

- Linux: \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< aeb62beaf9cbd0a72e7f97c9af6d3e7f76ce2946; \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< 8270d539a943d00cf6a094da0073e2b5972b641d; \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< 66843b14fb71825fdd73ab12f6594f2243b402be (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 66843b14fb71825fdd73ab12f6594f2243b402be 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-53583. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53583.md
Affected: Linux >= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, < aeb62beaf9cbd0a72e7f97c9af6d3e7f76ce2946; >= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, < 8270d539a943d00cf6a094da0073e2b5972b641d; >= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, < 66843b14fb71825fdd73ab12f6594f2243b402be; Linux 6.1
Fixed in: Linux 8270d539a943d00cf6a094da0073e2b5972b641d, Linux 66843b14fb71825fdd73ab12f6594f2243b402be

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-53583 being exploited?

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

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

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

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

Linux \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< aeb62beaf9cbd0a72e7f97c9af6d3e7f76ce2946; \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< 8270d539a943d00cf6a094da0073e2b5972b641d; \>= 096b52fd2bb4996fd68d22b3b7ad21a1296db9d3, \< 66843b14fb71825fdd73ab12f6594f2243b402be; Linux 6.1.

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

Yes. Fixed in Linux 8270d539a943d00cf6a094da0073e2b5972b641d, Linux 66843b14fb71825fdd73ab12f6594f2243b402be. Upgrade Linux to 66843b14fb71825fdd73ab12f6594f2243b402be or later.

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

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/aeb62beaf9cbd0a72e7f97c9af6d3e7f76ce2946>
- patch: <https://git.kernel.org/stable/c/8270d539a943d00cf6a094da0073e2b5972b641d>
- patch: <https://git.kernel.org/stable/c/66843b14fb71825fdd73ab12f6594f2243b402be>

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

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