media: radio-keene: fix memory leak in error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1bf20c3a0c616f44359c573b533d06bae960ee45 · < 1d8558a232ecb187e8e0328d6347a125f437a0fc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: radio-keene: fix memory leak in error path
Fix a memory leak in usb_keene_probe(). The v4l2 control handler is initialized and controls are added, but if v4l2_device_register() or video_register_device() fails afterward, the handler was never freed, leaking memory.
Add v4l2_ctrl_handler_free() call in the err_v4l2 error path to ensure the control handler is properly freed for all error paths after it is initialized.
From the CVE record · Linux
The Linux kernel's radio-keene driver leaks memory if device registration fails during usb_keene_probe(). The input does not specify whether an attacker can trigger the failure, or any network, authentication, or user-interaction conditions.
Engineers running Linux kernels with the radio-keene driver should check their installations; affected versions are not specified.