media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ca50c197bd9610ea984cfc0dc6855f183cbb46f8 · < ed1696f7f92e8404940d51dec80a123aa18163a8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link()
If fwnode_graph_get_remote_endpoint() fails, 'fwnode' is known to be NULL, so fwnode_handle_put() is a no-op.
Release the reference taken from a previous fwnode_graph_get_port_parent() call instead.
Also handle fwnode_graph_get_port_parent() failures.
In order to fix these issues, add an error handling path to the function and the needed gotos.
From the CVE record · Linux
The Linux kernel's v4l2_fwnode_parse_link() can leak a reference when fwnode_graph_get_remote_endpoint() fails. The input does not describe an attacker action or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernel versions with the affected v4l2-core code should check their builds; affected versions are not specified.