Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c2e5df616e1ae6c2a074cb241ebb65a318ebaf7c · < 8bc69f86328e87a0ffa79438430cc82f3aa6a194| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj
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 memory leak by calling kobject_put().
From the CVE record · Linux
The Linux kernel’s VMBus driver leaks memory when adding a channel object fails because it does not release a reference acquired during initialization. The input does not establish whether an attacker can trigger the failure or specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their version contains the affected VMBus code; affected versions are not specified.