net: renesas: rswitch: avoid use-after-put for a device tree node
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.6.676.12.66.13In the Linux kernel, the following vulnerability has been resolved:
net: renesas: rswitch: avoid use-after-put for a device tree node
The device tree node saved in the rswitch_device structure is used at several driver locations. So passing this node to of_node_put() after the first use is wrong.
Move of_node_put() for this node to exit paths.
From the CVE record · Linux
The Linux kernel’s Renesas rswitch driver can use a device tree node after releasing its reference. The issue occurs when the driver uses the saved node again; the input does not specify an attack path, authentication requirements, user interaction, or what an attacker could accomplish.
Engineers running Linux kernels with the Renesas rswitch driver should check their installations; affected versions are not specified.