CVE-2021-47057 crypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map
A memory leak in the Linux kernel's sun8i-ss crypto driver allows attackers to cause a denial of service by triggering a DMA mapping failure.
- 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-2021-47057?
CVE-2021-47057 is a medium-severity denial of service vulnerability in Linux kernel, published on 29 Feb 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:
crypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map
In the case where the dma_iv mapping fails, the return error path leaks the memory allocated to object d. Fix this by adding a new error return label and jumping to this to ensure d is free'd before the return.
Addresses-Coverity: ("Resource leak")
Weakness: CWE-770
Which versions are affected by CVE-2021-47057?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47057?
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-2021-47057 being exploited?
There is no known exploitation of CVE-2021-47057 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47057, GHSA-m647-h22j-v38q, UBUNTU-CVE-2021-47057.