CVEvulnerability
CVE-2021-47048
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2024-02-28
- Last modified
- 2026-08-04
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-416
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 configurations
• linux linux kernel (>= 5.10 < 5.10.37)
• linux linux kernel (>= 5.11 < 5.11.21)
• linux linux kernel (>= 5.12 < 5.12.4)
Related
Weakness · CWE (1)
- CWE-416 Use After Free weakness
References
- https://git.kernel.org/stable/c/1231279389b5e638bc3b66b9741c94077aed4b5a Patch
- https://git.kernel.org/stable/c/23269ac9f123eca3aea7682d3345c02e71ed696c Patch
- https://git.kernel.org/stable/c/a2c5bedb2d55dd27c642c7b9fb6886d7ad7bdb58 Patch
- https://git.kernel.org/stable/c/d67e0d6bd92ebbb0294e7062bbf5cdc773764e62 Patch
- https://git.kernel.org/stable/c/1231279389b5e638bc3b66b9741c94077aed4b5a Patch
- https://git.kernel.org/stable/c/23269ac9f123eca3aea7682d3345c02e71ed696c Patch
- https://git.kernel.org/stable/c/a2c5bedb2d55dd27c642c7b9fb6886d7ad7bdb58 Patch
- https://git.kernel.org/stable/c/d67e0d6bd92ebbb0294e7062bbf5cdc773764e62 Patch