# CVE-2025-21889: perf/core: Add RCU read lock protection to perf\_iterate\_ctx()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-27 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-21889, DEBIAN-CVE-2025-21889
- Record: https://cvemate.com/vulnerability/CVE-2025-21889 · JSON: https://cvemate.com/vulnerability/CVE-2025-21889/json

## Description

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

perf/core: Add RCU read lock protection to perf_iterate_ctx()

The perf_iterate_ctx() function performs RCU list traversal but
currently lacks RCU read lock protection. This causes lockdep warnings
when running perf probe with unshare(1) under CONFIG_PROVE_RCU_LIST=y:

	WARNING: suspicious RCU usage
	kernel/events/core.c:8168 RCU-list traversed in non-reader section!!

	 Call Trace:
	  lockdep_rcu_suspicious
	  ? perf_event_addr_filters_apply
	  perf_iterate_ctx
	  perf_event_exec
	  begin_new_exec
	  ? load_elf_phdrs
	  load_elf_binary
	  ? lock_acquire
	  ? find_held_lock
	  ? bprm_execve
	  bprm_execve
	  do_execveat_common.isra.0
	  __x64_sys_execve
	  do_syscall_64
	  entry_SYSCALL_64_after_hwframe

This protection was previously present but was removed in commit
bd2756811766 ("perf: Rewrite core context handling"). Add back the
necessary rcu_read_lock()/rcu_read_unlock() pair around
perf_iterate_ctx() call in perf_event_exec().

[ mingo: Use scoped_guard() as suggested by Peter ]
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.229%, percentile 14.642%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 113)

- debian linux (Debian): \< 6.12.19-1
- ubuntu linux (Ubuntu): \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1039.41
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 6.8.0-1039.41+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1038.44
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 25)

- <https://git.kernel.org/stable/c/f390c2eea571945f357a2d3b9fcb1c015767132e>
- <https://git.kernel.org/stable/c/a2475ccad6120546ea45dbcd6cd1f74dc565ef6b>
- <https://git.kernel.org/stable/c/dd536566dda9a551fc2a2acfab5313a5bb13ed02>
- <https://git.kernel.org/stable/c/0fe8813baf4b2e865d3b2c735ce1a15b86002c74>
- <https://ubuntu.com/security/CVE-2025-21889>
- <https://www.cve.org/CVERecord?id=CVE-2025-21889>
- <https://git.kernel.org/linus/0fe8813baf4b2e865d3b2c735ce1a15b86002c74>
- <https://ubuntu.com/security/notices/USN-7521-1>
- <https://ubuntu.com/security/notices/USN-7521-2>
- <https://ubuntu.com/security/notices/USN-7521-3>
- <https://ubuntu.com/security/notices/USN-7764-1>
- <https://ubuntu.com/security/notices/USN-7765-1>
- <https://ubuntu.com/security/notices/USN-7766-1>
- <https://ubuntu.com/security/notices/USN-7767-1>
- <https://ubuntu.com/security/notices/USN-7779-1>
- <https://ubuntu.com/security/notices/USN-7767-2>
- <https://ubuntu.com/security/notices/USN-7764-2>
- <https://ubuntu.com/security/notices/USN-7790-1>
- <https://ubuntu.com/security/notices/USN-7800-1>
- <https://ubuntu.com/security/notices/USN-7801-1>

---

Data as of 2026-12-05T04:12:51.145Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
