{"id":"CVE-2023-52735","state":"PUBLISHED","title":"bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself\n\nsock_map proto callbacks should never call themselves by design. Protect\nagainst bugs like [1] and break out of the recursive loop to avoid a stack\noverflow in favor of a resource leak.\n\n[1] https://lore.kernel.org/all/00000000000073b14905ef2e7401@google.com/","publishedAt":"2024-05-21T15:22:59.893Z","updatedAt":"2026-05-23T15:26:46.476Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c5cc0d23c5414d23438c5024890e367cc5a0e645","status":"affected","lessThan":"f312367f5246e04df564d341044286e9e37a97ba","versionType":"git"},{"version":"c5d2177a72a1659554922728fc407f59950aa929","status":"affected","lessThan":"7499859881488da97589f3c79cc66fa75748ad49","versionType":"git"},{"version":"c5d2177a72a1659554922728fc407f59950aa929","status":"affected","lessThan":"5b4a79ba65a1ab479903fff2e604865d229b70a9","versionType":"git"},{"version":"0580e47c8895a4d61ee095f086cba1ded7ca5e7f","status":"affected","versionType":"git"},{"version":"5.15.3","status":"affected","lessThan":"5.15.95","versionType":"semver"},{"version":"5.14.19","status":"affected","lessThan":"5.15","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_map.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"5.15.95","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.13","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_map.c"]}],"references":["https://git.kernel.org/stable/c/f312367f5246e04df564d341044286e9e37a97ba","https://git.kernel.org/stable/c/7499859881488da97589f3c79cc66fa75748ad49","https://git.kernel.org/stable/c/5b4a79ba65a1ab479903fff2e604865d229b70a9"],"weaknesses":["CWE-120"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52735.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52735","state":"PUBLISHED","datePublished":"2024-05-21T15:22:59.893Z","dateUpdated":"2026-05-23T15:26:46.476Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T15:19:24.232Z"},"containers":{"cna":{"title":"bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself\n\nsock_map proto callbacks should never call themselves by design. Protect\nagainst bugs like [1] and break out of the recursive loop to avoid a stack\noverflow in favor of a resource leak.\n\n[1] https://lore.kernel.org/all/00000000000073b14905ef2e7401@google.com/"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c5cc0d23c5414d23438c5024890e367cc5a0e645","status":"affected","lessThan":"f312367f5246e04df564d341044286e9e37a97ba","versionType":"git"},{"version":"c5d2177a72a1659554922728fc407f59950aa929","status":"affected","lessThan":"7499859881488da97589f3c79cc66fa75748ad49","versionType":"git"},{"version":"c5d2177a72a1659554922728fc407f59950aa929","status":"affected","lessThan":"5b4a79ba65a1ab479903fff2e604865d229b70a9","versionType":"git"},{"version":"0580e47c8895a4d61ee095f086cba1ded7ca5e7f","status":"affected","versionType":"git"},{"version":"5.15.3","status":"affected","lessThan":"5.15.95","versionType":"semver"},{"version":"5.14.19","status":"affected","lessThan":"5.15","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_map.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"5.15.95","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.13","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_map.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f312367f5246e04df564d341044286e9e37a97ba"},{"url":"https://git.kernel.org/stable/c/7499859881488da97589f3c79cc66fa75748ad49"},{"url":"https://git.kernel.org/stable/c/5b4a79ba65a1ab479903fff2e604865d229b70a9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:26:46.476Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.3","versionEndExcluding":"5.15.95"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","versions":[{"version":"1da177e4c3f4","status":"affected"}],"cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","versions":[{"version":"5.15.95","status":"unaffected"}],"cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","versions":[{"version":"6.1.13","status":"unaffected"}],"cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","versions":[{"version":"6.2","status":"unaffected"}],"cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-01-16T20:47:22.743454Z","id":"CVE-2023-52735","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-120","type":"CWE","lang":"en","description":"CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-07-30T13:34:33.705Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/f312367f5246e04df564d341044286e9e37a97ba","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7499859881488da97589f3c79cc66fa75748ad49","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5b4a79ba65a1ab479903fff2e604865d229b70a9","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:35.223Z"}}]}}}