CVE-2021-47287
JSON

5.5medium

driver core: auxiliary bus: Fix memory leak when driver_register() fail

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

Description

In the Linux kernel, the following vulnerability has been resolved: driver core: auxiliary bus: Fix memory leak when driver_register() fail If driver_register() returns with error we need to free the memory allocated for auxdrv->driver.name before returning from __auxiliary_driver_register()

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7de3697e9cbd4bd3d62bafa249d57990e1b8f294 before ce5b3de58fc21303722df46551f7eb9a91afb409, from 7de3697e9cbd4bd3d62bafa249d57990e1b8f294 before 4afa0c22eed33cfe0c590742387f0d16f32412f3, 5.11
Not affected: before 5.11, from 5.13.6 up to 5.13.*, from 5.14 up to *
CVE List
linux linux_kernelfrom 5.11 before 5.13.6, 5.14NVD

Classification

CWE-401

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: driver core: auxiliary bus: Fix memory leak when driver_register() fail If driver_register() returns with error we need to free the memory allocated for auxdrv->driver.name before returning from __auxiliary_driver_register()

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: núcleo del controlador: bus auxiliar: corrige la pérdida de memoria cuando falla driver_register(). Si driver_register() regresa con error, necesitamos liberar la memoria asignada para auxdrv->driver.name antes de regresar de __auxiliary_driver_register()

References

Sources

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