CVE-2021-47048

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

State
Published
Severity
7.8 High
Published
Feb 28, 2024
Updated
Aug 5, 2026
Reserved
Feb 27, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e to before 1231279389b5e638bc3b66b9741c94077aed4b5aAffected
  • 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e to before d67e0d6bd92ebbb0294e7062bbf5cdc773764e62Affected
  • 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e to before 23269ac9f123eca3aea7682d3345c02e71ed696cAffected
  • 1c26372e5aa9e53391a1f8fe0dc7cd93a7e5ba9e to before a2c5bedb2d55dd27c642c7b9fb6886d7ad7bdb58Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.37 through 5.10.*Not affected
  • 5.11.21 through 5.11.*Not affected
  • 5.12.4 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.