irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions
of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. When kcalloc fails, it missing of_node_put() and results in refcount leak. Fix this by goto out_put_node label.
From the CVE record · Linux
The Linux kernel's gic_populate_ppi_partitions function leaks a device-tree node reference when kcalloc fails. The input does not describe how an attacker could trigger the failure or specify network access, authentication, or user interaction requirements.
Engineers running the Linux kernel should check their installations; affected versions are not specified.