spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op
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:
spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op
When handling op->addr, it is using the buffer "tmpbuf" which has been freed. This will trigger a use-after-free KASAN warning. Let's use temporary variables to store op->addr.val and op->cmd.opcode to fix this issue.
From the CVE record · Linux
The Linux kernel's spi-zynqmp-gqspi driver uses a freed buffer when handling an operation's address in zynqmp_qspi_exec_op, triggering a KASAN use-after-free warning. The input does not establish how an attacker could reach this code or whether authentication or user interaction is required.
Engineers running Linux kernels with the spi-zynqmp-gqspi driver should check their installations; affected versions are not specified.