iio: adc: adi-axi-adc: Fix refcount leak in adi_axi_adc_attach_client
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:
iio: adc: adi-axi-adc: Fix refcount leak in adi_axi_adc_attach_client
of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel's adi-axi-adc driver leaks a device-tree node reference in adi_axi_adc_attach_client because it does not release a reference acquired by of_parse_phandle(). The input does not describe an attacker action or specify network access, authentication, or user-interaction conditions.
Engineers running Linux kernels with the adi-axi-adc driver should check their installations; affected versions are not specified.