CVE-2023-52735 bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself

Critical 9.1 Published Updated

A recursive call in Linux kernel sockmap callbacks can cause a stack overflow, leading to a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-52735?

CVE-2023-52735 is a critical denial of service vulnerability in Linux kernel, published on 21 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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/[email protected]/

Weakness: CWE-120

Which versions are affected by CVE-2023-52735?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52735?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-52735 being exploited?

There is no known exploitation of CVE-2023-52735 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52735, DEBIAN-CVE-2023-52735, GHSA-47rw-4rpj-m5g9, UBUNTU-CVE-2023-52735.

Is CVE-2023-52735 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free