dmaengine: ti: k3-udma-private: Fix refcount leak bug in of_xudma_dev_get()
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:
dmaengine: ti: k3-udma-private: Fix refcount leak bug in of_xudma_dev_get()
We should call of_node_put() for the reference returned by of_parse_phandle() in fail path or when it is not used anymore. Here we only need to move the of_node_put() before the check.
From the CVE record · Linux
The Linux kernel's TI K3 UDMA dmaengine code can leak a device-tree node reference in of_xudma_dev_get() when a failure path is taken. The input does not establish what an attacker could do with this bug or whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their build includes the affected TI K3 UDMA dmaengine code; affected versions were not provided.