media: v4l2-fwnode: Fix fwnode leak in v4l2_fwnode_parse_link
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ca50c197bd9610ea984cfc0dc6855f183cbb46f8 · < 3ced388b7908270529e5aa6d221840114b6c33bc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-fwnode: Fix fwnode leak in v4l2_fwnode_parse_link
In v4l2_fwnode_parse_link(), the remote endpoint fwnode reference is acquired using fwnode_graph_get_remote_endpoint(). This reference is properly released in the error paths, but it is leaked on the success path.
Add the missing fwnode_handle_put() before returning 0 to prevent the reference leak.
[Sakari Ailus: Fix subject prefix and coding style a little.]
From the CVE record · Linux
The Linux kernel's v4l2_fwnode_parse_link() leaks a remote endpoint reference on its success path. The input does not describe an attacker action or specify network access, authentication, or user interaction conditions.
Engineers running Linux kernels that include v4l2_fwnode_parse_link() should check whether their kernel contains the fix; affected versions are not specified.