drm/mediatek: fix potential OF node use-after-free
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.12.45 · < 6.12.48≥ 6.16.5 · < 6.16.8| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
drm/mediatek: fix potential OF node use-after-free
The for_each_child_of_node() helper drops the reference it takes to each node as it iterates over children and an explicit of_node_put() is only needed when exiting the loop early.
Drop the recently introduced bogus additional reference count decrement at each iteration that could potentially lead to a use-after-free.
From the CVE record · Linux
The Linux kernel's drm/mediatek component has an extra device-tree node reference decrement during child-node iteration, which could lead to a use-after-free. The input does not establish what an attacker could do or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with the drm/mediatek component should check their versions; affected versions are not specified.