CVE-2023-52687 crypto: safexcel - Add error handling for dma_map_sg() calls
Missing error handling in the Marvell Safexcel crypto driver can lead to a null pointer dereference and kernel crash if DMA mapping fails.
- 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-52687?
CVE-2023-52687 is a critical vulnerability in Linux kernel, published on 17 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:
crypto: safexcel - Add error handling for dma_map_sg() calls
Macro dma_map_sg() may return 0 on error. This patch enables checks in case of the macro failure and ensures unmapping of previously mapped buffers with dma_unmap_sg().
Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE.
Weakness: CWE-252
Which versions are affected by CVE-2023-52687?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52687?
Apply the vendor's patch.
Is CVE-2023-52687 being exploited?
There is no known exploitation of CVE-2023-52687 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52687, DEBIAN-CVE-2023-52687, GHSA-vx2v-mjff-9hjf, UBUNTU-CVE-2023-52687.