# CVE-2021-47057: crypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-02-29T22:37:32.216Z
- Modified: 2026-06-17T04:16:20.223Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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")

(As written by CVE List.)

## Affected

- Linux Linux: from ac2614d721dea2ff273af19c6c5d508d58a2bb3e before 617ec35ed51f731a593ae7274228ef2cfc9cb781; from ac2614d721dea2ff273af19c6c5d508d58a2bb3e before e1f2d739849c3239df1ea3f97d40bade4b808410; from ac2614d721dea2ff273af19c6c5d508d58a2bb3e before 6516cb852d704ff8d615de1f93cd443a99736c3d; from ac2614d721dea2ff273af19c6c5d508d58a2bb3e before 98b5ef3e97b16eaeeedb936f8bda3594ff84a70e; 5.10 (not affected: before 5.10; from 5.10.37 up to 5.10.*; from 5.11.21 up to 5.11.*; from 5.12.4 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.10 before 5.10.37; from 5.11 before 5.11.21; from 5.12 before 5.12.4

## References

- <https://git.kernel.org/stable/c/617ec35ed51f731a593ae7274228ef2cfc9cb781> (patch)
- <https://git.kernel.org/stable/c/e1f2d739849c3239df1ea3f97d40bade4b808410> (patch)
- <https://git.kernel.org/stable/c/6516cb852d704ff8d615de1f93cd443a99736c3d> (patch)
- <https://git.kernel.org/stable/c/98b5ef3e97b16eaeeedb936f8bda3594ff84a70e> (patch)

## Sources

- CVE List: [CVE-2021-47057](https://www.cve.org/CVERecord?id=CVE-2021-47057), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47057](https://nvd.nist.gov/vuln/detail/CVE-2021-47057), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47057 · Whole record: https://cve.day/CVE-2021-47057.json · Rebuilt by cve.day 2026-11-25T22:58:08.639Z
