device property: fix of node refcount leak in fwnode_graph_get_next_endpoint()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
device property: fix of node refcount leak in fwnode_graph_get_next_endpoint()
The 'parent' returned by fwnode_graph_get_port_parent() with refcount incremented when 'prev' is not NULL, it needs be put when finish using it.
Because the parent is const, introduce a new variable to store the returned fwnode, then put it before returning from fwnode_graph_get_next_endpoint().
From the CVE record · Linux
The Linux kernel's fwnode_graph_get_next_endpoint() can leak a node reference when called with a non-NULL previous endpoint. The input does not establish what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check their affected versions; no version range is provided.