mfd: sm501: Fix potential memory leaks during remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e · < 83feedd9d83c0c5199f98c72df0a6196b4aefb4d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mfd: sm501: Fix potential memory leaks during remove
The memory allocated for struct sm501_devdata in sm501_pci_probe() and sm501_plat_probe() is not freed by the corresponding remove functions sm501_pci_remove() and sm501_plat_remove(). Fix that by adding a call to kfree().
From the CVE record · Linux
The Linux kernel's sm501 PCI and platform remove functions do not free memory allocated during probe, causing a potential memory leak. The input does not describe how an attacker could trigger the leak or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the sm501 driver should check their installations; affected versions are not specified.