media: i2c/tw9903: Fix potential memory leak in tw9903_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0890ec19c65def8c8e445931b026e0fa8d809a34 · < cc7aeed33e4f55c76f35f0fca73e4dfe12a63a3a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: i2c/tw9903: Fix potential memory leak in tw9903_probe()
In one of the error paths in tw9903_probe(), the memory allocated in v4l2_ctrl_handler_init() and v4l2_ctrl_new_std() is not freed. Fix that by calling v4l2_ctrl_handler_free() on the handler in that error path.
From the CVE record · Linux
The Linux kernel’s media i2c/tw9903 driver can leak memory when tw9903_probe() takes a particular error path. The input does not describe how an attacker could trigger that path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the media i2c/tw9903 driver should check their versions; affected versions are not specified.