powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d7a301033f1990188f65abf4fe8e5b90ef0e3888 · < 96f27ff732208dce6468016e7a7d5032bd1bfc23| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
If device_register() returns error in ibmebus_bus_init(), name of kobject which is allocated in dev_set_name() called in device_add() is leaked.
As comment of device_add() says, it should call put_device() to drop the reference count that was set in device_initialize() when it fails, so the name can be freed in kobject_cleanup().
From the CVE record · Linux
The Linux kernel can leak a device name allocated during ibmebus_bus_init() if device_register() fails. The input does not specify whether an attacker can trigger this failure, or any access or interaction requirements.
Engineers running Linux kernels with the powerpc/pseries ibmebus code should check their versions; affected versions are not specified.