CVE-2023-52735
Assigner: Linux
Published: 2024-05-21T15:22:59.893Z
State: PUBLISHED
descriptions: value: 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: product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 1da177e4c3f4
lessThan: f312367f5246
status: affected
versionType: git
version: 1da177e4c3f4
lessThan: 749985988148
status: affected
versionType: git
version: 1da177e4c3f4
lessThan: 5b4a79ba65a1
status: affected
versionType: git
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 5.15.95
lessThanOrEqual: 5.15.*
status: unaffected
versionType: custom
version: 6.1.13
lessThanOrEqual: 6.1.*
status: unaffected
versionType: custom
version: 6.2
lessThanOrEqual: *
status: unaffected
versionType: original_commit_for_fix
title: bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself
x_generator: engine: bippy-d175d3acf727