CVE-2021-47057
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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")

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.10 before 5.10.37, from 5.11 before 5.11.21, from 5.12 before 5.12.4NVD

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: crypto: sun8i-ss: corrige la pérdida de memoria del objeto d cuando dma_iv no se puede asignar. En el caso de que falle la asignación de dma_iv, la ruta de error de retorno pierde la memoria asignada al objeto d. Solucione este problema agregando una nueva etiqueta de devolución de error y saltando a ella para asegurarse de que d esté libre antes de la devolución. Direcciones-Cobertura: ("Fuga de recursos")

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47057 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47057 changed 2026-06-17Public domain