usb: musb: omap2430: Do not put borrowed of_node in probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ffbe2feac59b37c8dc536727552b4f375e1b9aec · < c947360ae63eee1c9eacc030dd6f5a53f717addf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: musb: omap2430: Do not put borrowed of_node in probe
omap2430_probe() stores pdev->dev.of_node in a local np variable. This is a borrowed pointer and the probe function does not take a reference to it.
The success and error paths nevertheless call of_node_put(np). This drops a reference that is owned by the platform device, and can leave pdev->dev.of_node with an unbalanced reference count.
Do not put the borrowed platform device node from omap2430_probe(). References taken for the child MUSB device are handled by the device core, and the ctrl-module phandle reference is still released separately.
From the CVE record · Linux
The Linux kernel’s omap2430 USB MUSB probe releases a device-tree node reference it does not own, potentially leaving the platform device node with an unbalanced reference count. The input does not specify an attacker capability, access requirements, or user interaction.
Engineers running Linux kernels with the omap2430 USB MUSB driver should check their kernel versions; affected versions are not specified.