regulator: as3722_get_regulator_dt_data: fix premature of_node_put leaving dangling of_node pointer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bc407334e9a6a745de5360395282beb2690adf48 · < 95342d26f9c6b68a46ab57fa48428a3c4a423dd7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
regulator: as3722_get_regulator_dt_data: fix premature of_node_put leaving dangling of_node pointer
In as3722_get_regulator_dt_data(), of_get_child_by_name() acquires a reference on np, which is then assigned to pdev->dev.of_node. The function immediately calls of_node_put(np), releasing the reference and leaving pdev->dev.of_node as a dangling pointer.
Remove the of_node_put(np) call to let the device hold the reference.
From the CVE record · Linux
In the Linux kernel, as3722_get_regulator_dt_data() releases a device-tree node reference while the device still holds a pointer to it, leaving a dangling pointer. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with the AS3722 regulator driver should check their versions; affected versions are not specified.