MIPS: vpe-mt: fix possible memory leak while module exiting
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1fa5ae857bb14f6046205171d98506d8112dd74e · < e820a8192ff68570100347855b567512aec43819| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
MIPS: vpe-mt: fix possible memory leak while module exiting
Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release().
From the CVE record · Linux
The Linux kernel's MIPS vpe-mt code may leak dynamically allocated device-name memory when the module exits. The input does not say whether an attacker can trigger the leak or specify any access or user-interaction requirements.
Engineers running Linux kernels with the MIPS vpe-mt module should check their systems; affected versions are not specified.