pmdomain: mediatek: fix remaining %pOF after of_node_put()
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 |
|
|
6.18.467.1.107.2In the Linux kernel, the following vulnerability has been resolved:
pmdomain: mediatek: fix remaining %pOF after of_node_put()
scpsys_get_bus_protection_legacy() looks up several legacy bus protection regmaps from device-tree nodes.
Two error paths put the device node before checking whether the regmap lookup failed, but still pass that node to dev_err_probe() with %pOF on failure. If of_node_put() drops the last reference, the later %pOF formatting can dereference a freed device node.
Keep the node reference until after the error message has been emitted in the infracfg and SMI lookup paths. Also drop the SMI node before returning when the SMI phandle is missing.
From the CVE record · Linux
The Linux kernel’s MediaTek power-domain code can use a freed device-tree node when an infracfg or SMI regmap lookup fails and releasing the node drops its last reference. The input does not establish whether an attacker can trigger this condition, or specify any access or user-interaction requirements.
Engineers running Linux kernels with the affected MediaTek power-domain code should check their builds; affected versions were not provided.