Linux
pmdomain: mediatek: fix remaining %pOF after of_node_put()
In 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= c29345fa5f66bea0790cf2219f57b974d4fc177b, < 970b9c83a07c405fdd32bcce7cc4c9e670e58875
- >= c29345fa5f66bea0790cf2219f57b974d4fc177b, < 10bf2d7261d7f724ed43a09eea4c90c19c0230a0
- >= c29345fa5f66bea0790cf2219f57b974d4fc177b, < 3e013bc8b941bd52c8e3a99798d0ae8792cb71ca
Fixed in 970b9c83a07c405fdd32bcce7cc4c9e670e58875, 10bf2d7261d7f724ed43a09eea4c90c19c0230a0, 3e013bc8b941bd52c8e3a99798d0ae8792cb71ca
- 6.18
Fixed in 0, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to 970b9c83a07c405fdd32bcce7cc4c9e670e58875 or 10bf2d7261d7f724ed43a09eea4c90c19c0230a0 or 3e013bc8b941bd52c8e3a99798d0ae8792cb71ca or later.
Upgrade Linux to 0 or 6.18.46 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.