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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Published: 2024-05-21T15:22:59.893Z
- Modified: 2026-11-24T18:05:05.917Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from c5cc0d23c5414d23438c5024890e367cc5a0e645 before f312367f5246e04df564d341044286e9e37a97ba; from c5d2177a72a1659554922728fc407f59950aa929 before 7499859881488da97589f3c79cc66fa75748ad49; from c5d2177a72a1659554922728fc407f59950aa929 before 5b4a79ba65a1ab479903fff2e604865d229b70a9; 0580e47c8895a4d61ee095f086cba1ded7ca5e7f; from 5.15.3 before 5.15.95; from 5.14.19 before 5.15; 5.16 (not affected: before 5.16; from 5.15.95 up to 5.15.*; from 6.1.13 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: 1da177e4c3f4; from 5.14.19 before 5.15; from 5.15.3 before 5.15.95; from 5.16 before 6.1.13; 6.2 (not affected: 5.15.95; 6.1.13; 6.2)

## References

- <https://git.kernel.org/stable/c/f312367f5246e04df564d341044286e9e37a97ba> (patch)
- <https://git.kernel.org/stable/c/7499859881488da97589f3c79cc66fa75748ad49> (patch)
- <https://git.kernel.org/stable/c/5b4a79ba65a1ab479903fff2e604865d229b70a9> (patch)

## Sources

- CVE List: [CVE-2023-52735](https://www.cve.org/CVERecord?id=CVE-2023-52735), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2023-52735](https://nvd.nist.gov/vuln/detail/CVE-2023-52735), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2023-52735 · Whole record: https://cve.day/CVE-2023-52735.json · Rebuilt by cve.day 2026-11-25T22:58:33.991Z
