driver: soc: xilinx: use _safe loop iterator to avoid a use after free
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
driver: soc: xilinx: use _safe loop iterator to avoid a use after free
The hash_for_each_possible() loop dereferences "eve_data" to get the next item on the list. However the loop frees eve_data so it leads to a use after free. Use hash_for_each_possible_safe() instead.
From the CVE record · Linux
The Linux kernel’s Xilinx SoC driver has a use-after-free in a hash-table loop that accesses an item after freeing it. The input does not specify the resulting impact or whether exploitation requires network access, authentication, local access, or user interaction.
Engineers running Linux kernels with the Xilinx SoC driver should check their deployments; affected versions are not specified.