CVE-2023-52735
bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself
Check your servers for CVE-2023-52735
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52735 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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/
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 69.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Jan 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-120 Buffer Copy without Checking Size of Input
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c5cc0d23c5414d23438c5024890e367cc5a0e645, before f312367f5246e04df564d341044286e9e37a97ba affected from c5d2177a72a1659554922728fc407f59950aa929, before 7499859881488da97589f3c79cc66fa75748ad49 affected from c5d2177a72a1659554922728fc407f59950aa929, before 5b4a79ba65a1ab479903fff2e604865d229b70a9 affected 0580e47c8895a4d61ee095f086cba1ded7ca5e7f affected from 5.15.3, before 5.15.95 affected from 5.14.19, before 5.15
Other versions: unaffected
|
| Linux |
affected 5.16 unaffected before 5.16 unaffected from 5.15.95 up to and including 5.15.* unaffected from 6.1.13 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52735 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52735
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52735
trivy image --scanners vuln IMAGE | grep CVE-2023-52735
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/f312367f5246e04df564d341044286e9e37a97ba git.kernel.org
- https://git.kernel.org/stable/c/7499859881488da97589f3c79cc66fa75748ad49 git.kernel.org
- https://git.kernel.org/stable/c/5b4a79ba65a1ab479903fff2e604865d229b70a9 git.kernel.org
Source: the record CVE-2023-52735 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse