Skip to content
CVE PROGRAM SOURCE RECORD9.1 Critical

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • c5cc0d23c5414d23438c5024890e367cc5a0e645 to < f312367f5246e04df564d341044286e9e37a97baaffected
  • c5d2177a72a1659554922728fc407f59950aa929 to < 7499859881488da97589f3c79cc66fa75748ad49affected
  • c5d2177a72a1659554922728fc407f59950aa929 to < 5b4a79ba65a1ab479903fff2e604865d229b70a9affected
  • 0580e47c8895a4d61ee095f086cba1ded7ca5e7faffected
  • 5.15.3 to < 5.15.95affected
  • 5.14.19 to < 5.15affected

Linux Linux

Default version status: affected

  • 5.16affected
  • 0 to < 5.16unaffected
  • 5.15.95 to ≤ 5.15.*unaffected
  • 6.1.13 to ≤ 6.1.*unaffected
  • 6.2 to ≤ *unaffected

References