# CVE-2023-52621: bpf: Check rcu\_read\_lock\_trace\_held() before calling bpf map helpers

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.33% (percentile 19, 2026-11-28)
- **CWE:** CWE-617
- **Published:** 2024-03-26T17:19:23.208Z
- **Modified:** 2026-06-17T06:43:11.147Z

## Who should check

- Anyone running Linux \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 82f2df94dac1aa9b879e74d1f82ba1b631bdc612; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 3516f93cc63d956e1b290ae4b7bf2586074535a0; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< d6d6fe4bb105595118f12abeed4a7bdd450853f3; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 483cb92334cd7f1d5387dccc0ab5d595d27a669d; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< c7f1b6146f4a46d727c0d046284c28b6882c6304; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 169410eba271afc9f0fb476d996795aa26770c6d
- Anyone running Linux 5.10

## Description

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

bpf: Check rcu\_read\_lock\_trace\_held() before calling bpf map helpers

These three bpf\_map\_{lookup,update,delete}\_elem() helpers are also
available for sleepable bpf program, so add the corresponding lock
assertion for sleepable bpf program, otherwise the following warning
will be reported when a sleepable bpf program manipulates bpf map under
interpreter mode (aka bpf\_jit\_enable=0):

  WARNING: CPU: 3 PID: 4985 at kernel/bpf/helpers.c:40 ......
  CPU: 3 PID: 4985 Comm: test\_progs Not tainted 6.6.0+ \#2
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) ......
  RIP: 0010:bpf\_map\_lookup\_elem+0x54/0x60
  ......
  Call Trace:
   \<TASK\>
   ? \_\_warn+0xa5/0x240
   ? bpf\_map\_lookup\_elem+0x54/0x60
   ? report\_bug+0x1ba/0x1f0
   ? handle\_bug+0x40/0x80
   ? exc\_invalid\_op+0x18/0x50
   ? asm\_exc\_invalid\_op+0x1b/0x20
   ? \_\_pfx\_bpf\_map\_lookup\_elem+0x10/0x10
   ? rcu\_lockdep\_current\_cpu\_online+0x65/0xb0
   ? rcu\_is\_watching+0x23/0x50
   ? bpf\_map\_lookup\_elem+0x54/0x60
   ? \_\_pfx\_bpf\_map\_lookup\_elem+0x10/0x10
   \_\_\_bpf\_prog\_run+0x513/0x3b70
   \_\_bpf\_prog\_run32+0x9d/0xd0
   ? \_\_bpf\_prog\_enter\_sleepable\_recur+0xad/0x120
   ? \_\_bpf\_prog\_enter\_sleepable\_recur+0x3e/0x120
   bpf\_trampoline\_6442580665+0x4d/0x1000
   \_\_x64\_sys\_getpgid+0x5/0x30
   ? do\_syscall\_64+0x36/0xb0
   entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76
   \</TASK\>

## Affected and fixed versions

- Linux: \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 82f2df94dac1aa9b879e74d1f82ba1b631bdc612; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 3516f93cc63d956e1b290ae4b7bf2586074535a0; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< d6d6fe4bb105595118f12abeed4a7bdd450853f3; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 483cb92334cd7f1d5387dccc0ab5d595d27a669d; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< c7f1b6146f4a46d727c0d046284c28b6882c6304; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 169410eba271afc9f0fb476d996795aa26770c6d (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-52621.md
Affected: Linux >= 1e6c62a8821557720a9b2ea9617359b264f2f67c, < 82f2df94dac1aa9b879e74d1f82ba1b631bdc612; >= 1e6c62a8821557720a9b2ea9617359b264f2f67c, < 3516f93cc63d956e1b290ae4b7bf2586074535a0; >= 1e6c62a8821557720a9b2ea9617359b264f2f67c, < d6d6fe4bb105595118f12abeed4a7bdd450853f3; >= 1e6c62a8821557720a9b2ea…
Fixed in: Linux 82f2df94dac1aa9b879e74d1f82ba1b631bdc612, Linux 3516f93cc63d956e1b290ae4b7bf2586074535a0, Linux 483cb92334cd7f1d5387dccc0ab5d595d27a669d, Linux 169410eba271afc9f0fb476d996795aa26770c6d

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

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

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

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

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

Linux \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 82f2df94dac1aa9b879e74d1f82ba1b631bdc612; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 3516f93cc63d956e1b290ae4b7bf2586074535a0; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< d6d6fe4bb105595118f12abeed4a7bdd450853f3; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 483cb92334cd7f1d5387dccc0ab5d595d27a669d; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< c7f1b6146f4a46d727c0d046284c28b6882c6304; \>= 1e6c62a8821557720a9b2ea9617359b264f2f67c, \< 169410eba271afc9f0fb476d996795aa26770c6d; Linux 5.10.

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

Yes. Fixed in Linux 82f2df94dac1aa9b879e74d1f82ba1b631bdc612, Linux 3516f93cc63d956e1b290ae4b7bf2586074535a0, Linux 483cb92334cd7f1d5387dccc0ab5d595d27a669d, Linux 169410eba271afc9f0fb476d996795aa26770c6d. Upgrade Linux to 169410eba271afc9f0fb476d996795aa26770c6d or later.

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

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/82f2df94dac1aa9b879e74d1f82ba1b631bdc612>
- patch: <https://git.kernel.org/stable/c/3516f93cc63d956e1b290ae4b7bf2586074535a0>
- patch: <https://git.kernel.org/stable/c/d6d6fe4bb105595118f12abeed4a7bdd450853f3>
- patch: <https://git.kernel.org/stable/c/483cb92334cd7f1d5387dccc0ab5d595d27a669d>
- patch: <https://git.kernel.org/stable/c/c7f1b6146f4a46d727c0d046284c28b6882c6304>
- patch: <https://git.kernel.org/stable/c/169410eba271afc9f0fb476d996795aa26770c6d>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

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

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