CVE-2021-47287Published May 21, 2024 · May 21Updated Jun 17
driver core: auxiliary bus: Fix memory leak when driver_register() fail
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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()
From the CVE record · Linux
The Linux kernel’s auxiliary bus driver registration path leaks memory allocated for a driver name if driver_register() fails. The input does not specify how an attacker could trigger the failure or any access or user-interaction requirements.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.