What’s Vulnerable › Vulnerabilities
CVE-2021-47287: driver core: auxiliary bus: Fix memory leak when driver_register() fail
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-21 · updated 2026-06-17
- Weakness: CWE-401
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 products
- Linux kernel: from 5.11 before 5.13.6; 5.14-rc1, 5.14-rc2 — fixed in 5.13.6
How to fix
Upgrade to a fixed version: Linux kernel 5.13.6. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/4afa0c22eed33cfe0c590742387f0d16f32412f3
- https://git.kernel.org/stable/c/ce5b3de58fc21303722df46551f7eb9a91afb409
- https://git.kernel.org/stable/c/4afa0c22eed33cfe0c590742387f0d16f32412f3
- https://git.kernel.org/stable/c/ce5b3de58fc21303722df46551f7eb9a91afb409
Get alerted when CVE-2021-47287 or the next vulnerability affects your stack