mISDN: fix possible memory leak in mISDN_register_device()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1fa5ae857bb14f6046205171d98506d8112dd74e · < 029d5b7688a2f3a86f2a3be5a6ba9cc968c80e41| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mISDN: fix possible memory leak in mISDN_register_device()
Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, add put_device() to give up the reference, so that the name can be freed in kobject_cleanup() when the refcount is 0.
Set device class before put_device() to avoid null release() function WARN message in device_release().
From the CVE record · Linux
The Linux kernel's mISDN_register_device() can leak memory because a dynamically allocated device name is not freed. The input does not specify how an attacker could trigger the leak or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their build includes the affected mISDN code; affected versions are not specified.