# CVE-2021-47048: spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:51.551Z
- Modified: 2026-08-05T08:45:43.114Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.10 before 5.10.37; from 5.11 before 5.11.21; from 5.12 before 5.12.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1231279389b5e638bc3b66b9741c94077aed4b5a> (patch)
- <https://git.kernel.org/stable/c/d67e0d6bd92ebbb0294e7062bbf5cdc773764e62> (patch)
- <https://git.kernel.org/stable/c/23269ac9f123eca3aea7682d3345c02e71ed696c> (patch)
- <https://git.kernel.org/stable/c/a2c5bedb2d55dd27c642c7b9fb6886d7ad7bdb58> (patch)

## Sources

- CVE List: [CVE-2021-47048](https://www.cve.org/CVERecord?id=CVE-2021-47048), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47048](https://nvd.nist.gov/vuln/detail/CVE-2021-47048), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47048 · Whole record: https://cve.day/CVE-2021-47048.json · Rebuilt by cve.day 2026-11-25T22:58:08.634Z
