CVE-2021-47048
kernel: spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 28, 2024
Updated · August 5, 2026
Description
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.
Statement
No Red Hat products are affected by this flaw, as the Xilinx ZynqMP GQSPI controller (CONFIG_SPI_ZYNQMP_GQSPI) is not enabled in any shipping kernel release.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
CWE-416 · Use After Free