ALSA: ac97: fix a double free in snd_ac97_controller_register()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ac97: fix a double free in snd_ac97_controller_register()
If ac97_add_adapter() fails, put_device() is the correct way to drop the device reference. kfree() is not required. Add kfree() if idr_alloc() fails and in ac97_adapter_release() to do the cleanup.
Found by code review.
From the CVE record · Linux
The Linux kernel's ALSA ac97 controller registration has a double-free vulnerability when ac97_add_adapter() fails. The input does not establish what an attacker can do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with ALSA ac97 should check their versions against the vendor advisory; affected versions were not provided.