CVE-2024-56546Published Dec 27, 2024 · Dec 27Updated Oct 28
drivers: soc: xilinx: add the missing kfree in xlnx_add_cb_for_suspend()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drivers: soc: xilinx: add the missing kfree in xlnx_add_cb_for_suspend()
If we fail to allocate memory for cb_data by kmalloc, the memory allocation for eve_data is never freed, add the missing kfree() in the error handling path.
From the CVE record · Linux
The Linux kernel's Xilinx suspend callback leaks allocated memory if allocation of cb_data fails. The input does not specify whether an attacker can trigger this failure or whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the affected Xilinx driver should check their kernel versions; affected versions were not provided.