EDAC/versalnet: Fix device_node leak in mc_probe()
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.18.277.0.47.1In the Linux kernel, the following vulnerability has been resolved:
EDAC/versalnet: Fix device_node leak in mc_probe()
of_parse_phandle() returns a device_node reference that must be released with of_node_put(). The original code never freed r5_core_node on any exit path, causing a memory leak.
Fix this by using the automatic cleanup attribute __free(device_node) which ensures of_node_put() is called when the variable goes out of scope.
From the CVE record · Linux
The Linux kernel’s EDAC/versalnet mc_probe() fails to release a device_node reference, causing a memory leak. The input does not specify whether an attacker can trigger the leak, or any access or user-interaction requirements.
Engineers running Linux kernels with EDAC/versalnet should check their kernel version; affected versions are not specified.