CVE-2024-35908 tls: get psock ref after taking rxlock to avoid leak
A memory leak in the Linux kernel TLS implementation can lead to resource exhaustion and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35908?
CVE-2024-35908 is a medium-severity denial of service vulnerability in Linux kernel, published on 19 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
tls: get psock ref after taking rxlock to avoid leak
At the start of tls_sw_recvmsg, we take a reference on the psock, and then call tls_rx_reader_lock. If that fails, we return directly without releasing the reference.
Instead of adding a new label, just take the reference after locking has succeeded, since we don't need it before.
Weakness: CWE-401
Which versions are affected by CVE-2024-35908?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-35908?
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-2024-35908 being exploited?
There is no known exploitation of CVE-2024-35908 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-35908, DEBIAN-CVE-2024-35908, GHSA-7mq2-78wx-f53x, ROOT-OS-UBUNTU-2204-CVE-2024-35908, UBUNTU-CVE-2024-35908.