# CVE-2021-47287: driver core: auxiliary bus: Fix memory leak when driver_register() fail

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-05-21T14:34:50.937Z
- Modified: 2026-06-17T04:17:06.570Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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()

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.11 before 5.13.6; 5.14

## References

- <https://git.kernel.org/stable/c/ce5b3de58fc21303722df46551f7eb9a91afb409> (patch)
- <https://git.kernel.org/stable/c/4afa0c22eed33cfe0c590742387f0d16f32412f3> (patch)

## Sources

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

---

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