memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings
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:
memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings
of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. This function doesn't call of_node_put() in some error paths. To unify the structure, Add put_node label and goto it on errors.
From the CVE record · Linux
The Linux kernel’s exynos5422-dmc driver fails to release a device-tree node reference on some error paths in of_get_dram_timings. This can cause a reference-count leak. The input does not establish whether an attacker can trigger it or specify access or interaction requirements.
Engineers running Linux kernels with the exynos5422-dmc driver should check their deployments; affected versions are not specified.