firmware: dmi-sysfs: Fix memory leak in dmi_sysfs_register_handle
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 948af1f0bbc8526448e8cbe3f8d3bf211bdf5181 · < fdffa4ad8f6bf1ece877edfb807f2b2c729d8578| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: dmi-sysfs: Fix memory leak in dmi_sysfs_register_handle
kobject_init_and_add() takes reference even when it fails. According to the doc of kobject_init_and_add()
If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object.
Fix this issue by calling kobject_put().
From the CVE record · Linux
The Linux kernel's dmi-sysfs component can leak memory when kobject_init_and_add() fails because the object reference is not released. The input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Teams running the Linux kernel should check their installations; affected versions are not specified.