bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself
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/
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.95, 6.1.13
- CVEs
- CVE-2023-52735
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 10:37 UTC · Revision 1
Source evidence
bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself
core-osv · Original sourcePublished 21 May 2024, 15:22 UTC
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/
osv:CVE-2023-52735
Kernel
Fixed versions: 5.15.95, 6.1.13
Complete source record
{
"id": "cc4d299a947a6d66bed10dce6933c0ff56ce26d84509c7a87eb88b5c95537262",
"url": "https://osv.dev/vulnerability/CVE-2023-52735",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself",
"summary": "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/",
"evidence": "osv:CVE-2023-52735",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.95",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.13",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2023-52735",
"aliases": [
"CVE-2023-52735"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c5cc0d23c5414d23438c5024890e367cc5a0e645"
},
{
"fixed": "f312367f5246e04df564d341044286e9e37a97ba"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c5d2177a72a1659554922728fc407f59950aa929"
},
{
"fixed": "7499859881488da97589f3c79cc66fa75748ad49"
},
{
"fixed": "5b4a79ba65a1ab479903fff2e604865d229b70a9"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.15.3"
},
{
"fixed": "5.15.95"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.14.19"
},
{
"fixed": "5.15"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "0580e47c8895a4d61ee095f086cba1ded7ca5e7f"
}
]
}
],
"versions": [
"v5.15.94",
"v5.15.93",
"v5.15.92",
"v5.15.91",
"v5.15.90",
"v5.15.89",
"v5.15.88",
"v5.15.87",
"v5.15.86",
"v5.15.85",
"v5.15.84",
"v5.15.83",
"v5.15.82",
"v5.15.81",
"v5.15.80",
"v5.15.79",
"v5.15.78",
"v5.15.77",
"v5.15.76",
"v5.15.75",
"v5.15.74",
"v5.15.73",
"v5.15.72",
"v5.15.71",
"v5.15.70",
"v5.15.69",
"v5.15.68",
"v5.15.67",
"v5.15.66",
"v5.15.65",
"v5.15.64",
"v5.15.63",
"v5.15.62",
"v5.15.61",
"v5.15.60",
"v5.15.59",
"v5.15.58",
"v5.15.57",
"v5.15.56",
"v5.15.55",
"v5.15.54",
"v5.15.53",
"v5.15.52",
"v5.15.51",
"v5.15.50",
"v5.15.49",
"v5.15.48",
"v5.15.47",
"v5.15.46",
"v5.15.45",
"v5.15.44",
"v5.15.43",
"v5.15.42",
"v5.15.41",
"v5.15.40",
"v5.15.39",
"v5.15.38",
"v5.15.37",
"v5.15.36",
"v5.15.35",
"v5.15.34",
"v5.15.33",
"v5.15.32",
"v5.15.31",
"v5.15.30",
"v5.15.29",
"v5.15.28",
"v5.15.27",
"v5.15.26",
"v5.15.25",
"v5.15.24",
"v5.15.23",
"v5.15.22",
"v5.15.21",
"v5.15.20",
"v5.15.19",
"v5.15.18",
"v5.15.17",
"v5.15.16",
"v5.15.15",
"v5.15.14",
"v5.15.13",
"v5.15.12",
"v5.15.11",
"v5.15.10",
"v5.15.9",
"v5.15.8",
"v5.15.7",
"v5.15.6",
"v5.15.5",
"v5.15.4",
"v5.15.3",
"v5.14.21",
"v5.14.20",
"v5.14.19"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52735.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.15.95"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.13"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52735.json"
}
}
],
"modified": "2026-10-28T02:30:28.204389990Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/5b4a79ba65a1ab479903fff2e604865d229b70a9",
"https://git.kernel.org/stable/c/7499859881488da97589f3c79cc66fa75748ad49",
"https://git.kernel.org/stable/c/f312367f5246e04df564d341044286e9e37a97ba",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52735.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-52735",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52735.json"
}
},
"related_cves": [
{
"value": "CVE-2023-52735",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494590,
"published_at": "2024-05-21T15:22:59.893+00:00"
}