misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe()
Linux
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:
misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe()
When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function gp_auxiliary_device_release() calls ida_free() and kfree(aux_device_wrapper) to free memory. We should't call them again in the error handling path.
Fix this by skipping the redundant cleanup functions.
From the CVE record · Linux
The Linux kernel’s Microchip pci1xxxx auxiliary bus probe has a double free in its error-handling path when auxiliary_device_add() fails. The input does not describe how an attacker could trigger the failure or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the Microchip pci1xxxx component should check their exposure; affected versions were not provided.