ALSA: aoa: i2sbus: fix possible memory leak in i2sbus_add_dev()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f3d9478b2ce468c3115b02ecae7e975990697f15 · < e81d7826b8f40430a1ea1b330e24d9a9eb4512c4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: aoa: i2sbus: fix possible memory leak in i2sbus_add_dev()
dev_set_name() in soundbus_add_one() allocates memory for name, it need be freed when of_device_register() fails, call soundbus_dev_put() to give up the reference that hold in device_initialize(), so that it can be freed in kobject_cleanup() when the refcount hit to 0. And other resources are also freed in i2sbus_release_dev(), so it can return 0 directly.
From the CVE record · Linux
The Linux kernel's ALSA aoa i2sbus code can leak memory when device registration fails after a device name is allocated. The input does not specify how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their versions include the fix; affected versions are not specified.