CVE-2021-46962
JSON

5.5medium

mmc: uniphier-sd: Fix a resource leak in the remove function

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: mmc: uniphier-sd: Fix a resource leak in the remove function A 'tmio_mmc_host_free()' call is missing in the remove function, in order to balance a 'tmio_mmc_host_alloc()' call in the probe. This is done in the error handling path of the probe, but not in the remove function. Add the missing call.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 3fd784f745dd1747863775a99ec749619ee6759c before 0d8941b9b2d3e7b3481fdf43b1a6189d162175b7, from 3fd784f745dd1747863775a99ec749619ee6759c before 25ac6ce65f1ab458982d15ec1caf441acd37106a, from 3fd784f745dd1747863775a99ec749619ee6759c before ebe0f12cf4c044f812c6d17011531582f9ac8bb3, from 3fd784f745dd1747863775a99ec749619ee6759c before d6e7fda496978f2763413b5523557b38dc2bf6c2, from 3fd784f745dd1747863775a99ec749619ee6759c before e29c84857e2d51aa017ce04284b962742fb97d9e, 4.20
Not affected: before 4.20, from 5.4.118 up to 5.4.*, from 5.10.36 up to 5.10.*, from 5.11.20 up to 5.11.*, from 5.12.3 up to 5.12.*, from 5.13 up to *
CVE List
linux linux_kernelfrom 4.20 before 5.4.118, from 5.5 before 5.10.36, from 5.11 before 5.11.20, from 5.12 before 5.12.3NVD

Classification

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: mmc: uniphier-sd: Fix a resource leak in the remove function A 'tmio_mmc_host_free()' call is missing in the remove function, in order to balance a 'tmio_mmc_host_alloc()' call in the probe. This is done in the error handling path of the probe, but not in the remove function. Add the missing call.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mmc: uniphier-sd: corrige una fuga de recursos en la función de eliminación Falta una llamada 'tmio_mmc_host_free()' en la función de eliminación, para equilibrar un 'tmio_mmc_host_alloc()' llamar a la sonda. Esto se hace en la ruta de manejo de errores de la sonda, pero no en la función de eliminación. Agrega la llamada faltante.

References

Sources

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