vdpa: ifcvf: Do proper cleanup if IFCVF init fails
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:
vdpa: ifcvf: Do proper cleanup if IFCVF init fails
ifcvf_mgmt_dev leaks memory if it is not freed before returning. Call is made to correct return statement so memory does not leak. ifcvf_init_hw does not take care of this so it is needed to do it here.
From the CVE record · Linux
The Linux kernel's vdpa ifcvf code can leak memory when IFCVF initialization fails because it does not free ifcvf_mgmt_dev before returning. The input does not specify how an attacker could trigger the failure or whether access, authentication, or user interaction is required.
Teams running Linux kernels with the vdpa ifcvf component should check their deployments; affected versions are not specified.