CVE-2021-47048
JSON

7.8high

spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e before 1231279389b5e638bc3b66b9741c94077aed4b5a, from 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e before d67e0d6bd92ebbb0294e7062bbf5cdc773764e62, from 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e before 23269ac9f123eca3aea7682d3345c02e71ed696c, from 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e before a2c5bedb2d55dd27c642c7b9fb6886d7ad7bdb58, 5.10
Not affected: before 5.10, from 5.10.37 up to 5.10.*, from 5.11.21 up to 5.11.*, from 5.12.4 up to 5.12.*, from 5.13 up to *
CVE List
linux linux_kernelfrom 5.10 before 5.10.37, from 5.11 before 5.11.21, from 5.12 before 5.12.4NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: spi: spi-zynqmp-gqspi: corrige use-after-free en zynqmp_qspi_exec_op Al manejar op->addr, se utiliza el buffer "tmpbuf" que ha sido liberado. Esto activará una advertencia de KASAN de use-after-free. Usemos variables temporales para almacenar op->addr.val y op->cmd.opcode para solucionar este problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47048 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47048 changed 2026-08-04Public domain