What’s Vulnerable › Vulnerabilities

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

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/

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.95, 6.1.13. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-52735 or the next vulnerability affects your stack